mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibRegex: Make ^ and $ accept all LineTerminator
s instead of just '\n'
Also adds a couple tests.
This commit is contained in:
parent
59a76b1279
commit
6fc9f5fa28
Notes:
sideshowbarker
2024-07-17 03:10:07 +09:00
Author: https://github.com/alimpfard
Commit: 6fc9f5fa28
Pull-request: https://github.com/SerenityOS/serenity/pull/18039
Reviewed-by: https://github.com/linusg
3 changed files with 13 additions and 8 deletions
|
@ -116,7 +116,7 @@ public:
|
|||
void reset_flag(T flag) { m_flags = (T)((FlagsUnderlyingType)m_flags & ~(FlagsUnderlyingType)flag); }
|
||||
void set_flag(T flag) { *this |= flag; }
|
||||
bool has_flag_set(T flag) const { return (FlagsUnderlyingType)flag == ((FlagsUnderlyingType)m_flags & (FlagsUnderlyingType)flag); }
|
||||
T value() const { return m_flags; }
|
||||
constexpr T value() const { return m_flags; }
|
||||
|
||||
private:
|
||||
T m_flags { T::Default };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue