From 4a3c198ac15f5fd4b4a1319d8edf6b2f41e63cc6 Mon Sep 17 00:00:00 2001 From: func25 Date: Fri, 6 Sep 2024 23:58:22 +0700 Subject: [PATCH] add test --- src/regexp/syntax/simplify_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/regexp/syntax/simplify_test.go b/src/regexp/syntax/simplify_test.go index 6d06f99c1b6..4271003166d 100644 --- a/src/regexp/syntax/simplify_test.go +++ b/src/regexp/syntax/simplify_test.go @@ -114,6 +114,7 @@ var simplifyTests = []struct { {`(?i)[a-z]`, "[A-Za-z\u017F\u212A]"}, {`(?i)[\x00-\x{FFFD}]`, "[\\x00-\uFFFD]"}, {`(?i)[\x00-\x{10FFFF}]`, `(?s:.)`}, + {`[xX][O-u]`, `(?i:X)[O-u]`}, // Empty string as a regular expression. // The empty string must be preserved inside parens in order