We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9699ef6 commit ac7d242Copy full SHA for ac7d242
1 file changed
tool/common.sh
@@ -93,7 +93,7 @@ for check_location_api in ${check_location_api_arr[*]}
93
do
94
location=$(timeout 3 curl -SsL ${check_location_api} | grep location)
95
[ ".${location}" = "." ] && continue
96
-echo "${location}" | grep '中国' &> /dev/null && echo "China" || echo "Other"
+echo "${location}" | grep -E -v '香港|澳门|台湾' | grep '中国' &> /dev/null && echo "China" || echo "Other"
97
break
98
done
99
0 commit comments