mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibRegex: Support property escapes of the Unicode script property
Note that unlike binary properties and general categories, scripts must be specified in the non-binary (Script=Value) form.
This commit is contained in:
parent
f5c1bbc00b
commit
06088df729
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/trflynn89
Commit: 06088df729
Pull-request: https://github.com/SerenityOS/serenity/pull/9204
Reviewed-by: https://github.com/linusg ✅
5 changed files with 44 additions and 4 deletions
|
@ -683,6 +683,12 @@ TEST_CASE(ECMA262_property_match)
|
|||
{ "\\p{gc=Cased_Letter}", "a", true, ECMAScriptFlags::Unicode },
|
||||
{ "\\p{gc=Cased_Letter}", "A", true, ECMAScriptFlags::Unicode },
|
||||
{ "\\p{gc=Cased_Letter}", "9", false, ECMAScriptFlags::Unicode },
|
||||
{ "\\p{Script=Latin}", "a", true, ECMAScriptFlags::Unicode },
|
||||
{ "\\p{Script=Latin}", "A", true, ECMAScriptFlags::Unicode },
|
||||
{ "\\p{Script=Latin}", "9", false, ECMAScriptFlags::Unicode },
|
||||
{ "\\p{sc=Latin}", "a", true, ECMAScriptFlags::Unicode },
|
||||
{ "\\p{sc=Latin}", "A", true, ECMAScriptFlags::Unicode },
|
||||
{ "\\p{sc=Latin}", "9", false, ECMAScriptFlags::Unicode },
|
||||
};
|
||||
|
||||
for (auto& test : tests) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue