fix: strip SOH codes

This commit is contained in:
aclist committed 2024-01-13 11:32:12 +09:00
1 parent bb07cf3ac7
commit 208e9ef7ad
3 files changed
+6 -5

No files matched your search

+3 -2
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -o pipefail
version=5.0.0.rc-17
version=5.0.0.rc-18
#CONSTANTS
aid=221100
@@ -528,7 +528,8 @@ sanitize(){
}
parse_server_json(){
local response="$1"
<<< "$response" jq -r '
# some servers pad SOH in name
<<< "$response" sed 's/\\u0001//g' | jq -r '
.[]|"\(.name)␞" +
"\(.map|if type == "string" then ascii_downcase else "null" end)␞" +
"\(if .gametype == null then "null" else (.gametype|split(",")|if any(. == "no3rd") then "1PP" else "3PP" end) end)␞" +