mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Both class-string regexes carried (?:[^\s"']*:)* for the optional modifier prefix chain. The inner class includes the colon, so the star could carve the same prefix into chunks many ways, and a long non-matching string made the engine try them all — exponential backtracking (CodeQL alert 44, js/redos). Excluding the colon from the chunk class accepts exactly the same strings with one parse each. The rule's 35 tests pass unchanged. Resolves CodeQL alert 44.