mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +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
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