mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Merge pull request #18899 from Napalys/js/ecma-2024-regex
JS: Add ECMAScript 2024 `v` Flag Operators for Regex Parsing
This commit is contained in:
@@ -11,3 +11,4 @@
|
||||
/[\u{ff}]/;
|
||||
/[\u{12340}-\u{12345}]/u; // OK
|
||||
new RegExp("[\u{12340}-\u{12345}]", "u"); // OK
|
||||
const regex = /\b(?:https?:\/\/|mailto:|www\.)(?:[\S--[\p{P}<>]]|\/|[\S--[\[\]]]+[\S--[\p{P}<>]])+|\b[\S--[@\p{Ps}\p{Pe}<>]]+@([\S--[\p{P}<>]]+(?:\.[\S--[\p{P}<>]]+)+)/gmv;
|
||||
|
||||
Reference in New Issue
Block a user