From c004032e52b2de18102ebd962fd405db83153747 Mon Sep 17 00:00:00 2001 From: aclist Date: Wed, 14 Sep 2022 22:10:27 +0900 Subject: [PATCH] Fix unicode regex --- dzgui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dzgui.sh b/dzgui.sh index 0ef769d..8a8595c 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -949,7 +949,7 @@ munge_servers(){ local gameport=$(echo "$response" | jq -r '.[].gameport') local qport=$(echo "$response" | jq -r '.[].addr' | awk -F: '{print $2}') #jq bug #1788, raw output cannot be used with ASCII - local name=$(echo "$response" | jq -a '.[].name' | sed 's/\\u[0-9]\{4\}//g;s/^"//;s/"$//') + local name=$(echo "$response" | jq -a '.[].name' | sed 's/\\u[0-9a-z]\{4\}//g;s/^"//;s/"$//') local players=$(echo "$response" | jq -r '.[].players') local max=$(echo "$response" | jq -r '.[].max_players') local map=$(echo "$response" | jq -r '.[].map|ascii_downcase')