mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibRegex: Fully interpret the Compare Op when looking for overlaps
We had a really naive and simplistic implementation, which lead to various issues where the optimiser incorrectly rewrote the regex to use atomic groups; this commit fixes that.
This commit is contained in:
committed by
Andreas Kling
parent
b6f2ba6917
commit
6e655b7f89
@@ -745,6 +745,7 @@ public:
|
||||
String arguments_string() const override;
|
||||
Vector<String> variable_arguments_to_string(Optional<MatchInput> input = {}) const;
|
||||
Vector<CompareTypeAndValuePair> flat_compares() const;
|
||||
static bool matches_character_class(CharClass, u32, bool insensitive);
|
||||
|
||||
private:
|
||||
ALWAYS_INLINE static void compare_char(MatchInput const& input, MatchState& state, u32 ch1, bool inverse, bool& inverse_matched);
|
||||
|
||||
Reference in New Issue
Block a user