Skip to content

Commit 39b4daf

Browse files
committed
fix #4375
1 parent 4315d1f commit 39b4daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

luci-app-openclash/root/usr/share/openclash/yml_rules_change.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ yml_other_set()
435435
end;
436436
end;
437437
Value['rules'].to_a.collect!{|x|x.to_s
438-
.gsub(/GEOIP,([^,]+),([^,]+)(,.*)?/, 'GEOIP,\1,DIRECT\3')
438+
.gsub(/GEOIP,([A-Z]{2}),([^,]+)(,.*)?/, 'GEOIP,\1,DIRECT\3')
439439
.gsub(/(^MATCH.*|^FINAL.*)/, 'MATCH,DIRECT')};
440440
end;
441441
rescue Exception => e

0 commit comments

Comments
 (0)