Skip to content

Commit

Permalink
Not supported on hashlink, and PHP has a bug there
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Feb 4, 2025
1 parent 948c171 commit ca81edb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/src/unitstd/EReg.unit.hx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ new EReg("^" + EReg.escape("\\ ^ $ * + ? . ( ) | { } [ ]") + "$", "").match("\\
~/(\d+)/g.replace("a1234b12","$$1") == "a$1b$1";

// #10592 - null character
#if (!hl && !php)
var containingNull = new EReg("abc\x00def", "");
containingNull.match("abc") == false;
containingNull.match("abc\x00def") == true;
Expand All @@ -128,3 +129,4 @@ var containingNull = ~/abc\x00def/;
containingNull.match("abc") == false;
containingNull.match("abc\x00def") == true;
containingNull.match("abc\x00fed") == false;
#end

0 comments on commit ca81edb

Please sign in to comment.