mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
48cb15283a
Previously, for a regex such as /[a-sy-z]/i, we would incorrectly think the character "u" fell into the range "a-s" because neither of the conditions "u > s && U > s" or "u < a && U < a" would be true, resulting in the lookup falling back to assuming the character is in the range. Instead, first explicitly check if the character falls into the range, rather than checking if it falls outside the range. If the explicit checks fail, then we know the character is outside the range. |
||
---|---|---|
.. | ||
C | ||
CMakeLists.txt | ||
Forward.h | ||
Regex.h | ||
RegexByteCode.cpp | ||
RegexByteCode.h | ||
RegexBytecodeStreamOptimizer.h | ||
RegexDebug.h | ||
RegexError.h | ||
RegexLexer.cpp | ||
RegexLexer.h | ||
RegexMatch.h | ||
RegexMatcher.cpp | ||
RegexMatcher.h | ||
RegexOptimizer.cpp | ||
RegexOptions.h | ||
RegexParser.cpp | ||
RegexParser.h |