mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
16 lines
483 B
Plaintext
16 lines
483 B
Plaintext
import javascript
|
|
|
|
from RegExpLiteral literal, RegExpConstant wideConstant
|
|
where
|
|
wideConstant.getLiteral() = literal and
|
|
not literal.getFlags().matches("%u%") and
|
|
wideConstant.getValue().length() > 1 and
|
|
(
|
|
wideConstant.getParent() instanceof RegExpCharacterClass
|
|
or
|
|
wideConstant.getParent() instanceof RegExpCharacterRange
|
|
or
|
|
wideConstant.getParent() instanceof RegExpQuantifier
|
|
)
|
|
select literal, "Split supplementary character in non-unicode literal."
|