Skip to content

Commit

Permalink
Implement RegExp Escaping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
afmenez authored and ljharb committed Oct 15, 2024
1 parent fb3ddee commit f34a764
Show file tree
Hide file tree
Showing 2 changed files with 202 additions and 27 deletions.
18 changes: 17 additions & 1 deletion data-esnext.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,23 @@ exports.tests = [
}
},
]
}
},
{
name: 'RegExp Escaping',
category: STAGE3,
significance: 'medium',
spec: 'https://github.com/tc39/proposal-regex-escaping',
exec: function () {/*
return RegExp.escape("The Quick Brown Fox") === "The\\ Quick\\ Brown\\ Fox" &&
RegExp.escape("(*.*)") === "\\(\\*\\.\\*\\)" &&
RegExp.escape("。^・ェ・^。") === "。\\^・ェ・\\^。" &&
RegExp.escape("\\d \\D (?:)") === "\\\\d \\\\D \\(\\?\\:\\)";
*/},
res: {
chrome129: false,
firefox115: false,
}
},
];


Expand Down
Loading

0 comments on commit f34a764

Please sign in to comment.