@@ -1232,6 +1232,8 @@ test "tflags":
12321232 check (not " Ǝ" .isMatch (re2 " (?-u)[\ w]" ))
12331233 check (not " \t " .isMatch (re2 " (?-u)[\ w]" ))
12341234 check " ƎƎ" .isMatch (re2 " (?-u)[^\ w](?u)\ w" )
1235+ check isMatch (" 弢" , re2 " (?u).+" )
1236+ check isMatch (" 弢" , re2 " (?-u).+" )
12351237
12361238 check " a" .isMatch (re2 " (?x)a" )
12371239 check " a" .isMatch (re2 " (?x)a " )
@@ -3156,9 +3158,9 @@ when not defined(js) or NimMajor >= 2:
31563158 check match (" abcd" , re2 (r " (?-su).{4} " , flags))
31573159 check match (" abcd" , re2 (r " (?s-u).{4} " , flags))
31583160 check match (" abcd" , re2 (r " (?u-s).{4} " , flags))
3159- # check match("弢", re2(r".{4}", flags)) # XXX should match
3161+ check match (" 弢" , re2 (r " .{4} " , flags))
31603162 check match (" 弢" , re2 (r " (?u).{4} " , flags))
3161- check ( not match (" 弢" , re2 (r " (?-u).{4} " , flags) ))
3163+ check match (" 弢" , re2 (r " (?-u).{4} " , flags))
31623164 check (not match (" \n " , re2 (r " . " , flags)))
31633165 check match (" \n " , re2 (r " (?s). " , flags))
31643166 check (not match (" \n " , re2 (r " (?u). " , flags)))
0 commit comments