You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Earlier, a colleague of mine filed #18721 regarding adding support for the v flag. That was implemented but it seems like there's some false positives without properly handling of the set operations.
More specifically, the regex below fails with the ID js/regex/duplicate-in-character-class since it believes [\S--[\[\]]] is a character class that contains brackets ([]) twice.
Description of the false positive
Earlier, a colleague of mine filed #18721 regarding adding support for the
v
flag. That was implemented but it seems like there's some false positives without properly handling of the set operations.More specifically, the regex below fails with the ID
js/regex/duplicate-in-character-class
since it believes[\S--[\[\]]]
is a character class that contains brackets ([]
) twice.Code samples or links to source code
at https://github.com/mozilla/pdf.js/blob/fef706233d6870ddb01ac2131a2ee157262187a4/web/autolinker.js#L101-L101.
URL to the alert on GitHub code scanning (optional)
https://github.com/mozilla/pdf.js/security/code-scanning/1003
The text was updated successfully, but these errors were encountered: