From c26d6872ff68a4cbbc25073be419536b40163e97 Mon Sep 17 00:00:00 2001 From: rzvxa Date: Thu, 5 Sep 2024 08:36:41 +0330 Subject: [PATCH] add note comments. --- crates/oxc_regular_expression/src/display.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/oxc_regular_expression/src/display.rs b/crates/oxc_regular_expression/src/display.rs index e813945483030c..58c5ecc1fb9b6e 100644 --- a/crates/oxc_regular_expression/src/display.rs +++ b/crates/oxc_regular_expression/src/display.rs @@ -493,7 +493,7 @@ mod test { (r"/\d/g", None), // we lose the flags ordering (r"/\d/ug", Some(r"/\d/gu")), - // NOTE: we capitalize hex unicodes. + // we capitalize hex unicodes. (r"/\n\cM\0\x41\u{1f600}\./u", Some(r"/\n\cM\0\x41\u{1F600}\./u")), (r"/c]/", None), // Octal tests from: @@ -540,9 +540,13 @@ mod test { (r"/[\c8]/", None), (r"/[\c80]+/", None), (r"/\c_/", None), + // we capitalize hex unicodes. (r"/^|\udf06/gu", Some(r"/^|\uDF06/gu")), + // we capitalize hex unicodes. (r"/\udf06/", Some(r"/\uDF06/")), + // we capitalize hex unicodes. (r"/\udf06/u", Some(r"/\uDF06/u")), + // we capitalize hex unicodes. (r"/^|\udf06/g", Some(r"/^|\uDF06/g")), ];