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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Security
SC021's unquoted-colon regex ran in quadratic time on a long name: or description: line (CodeQL js/polynomial-redos): a 20,000-character line took 190 to 400 ms and the time grew with the square of the length. It now matches the value's first character with a class that cannot overlap \s, and checks for ": " with includes(), so the same lines take under 1 ms.
Fixed
SC021 flagged a correctly quoted value with two or more spaces after the colon (description: "Use when: testing"), because the old regex's \s+ gave back a space and the quote check then looked at that space. It now looks at the value's first non-space character.