mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibRegex: Remove duplicated condition
This commit is contained in:
parent
7dd7f77219
commit
811d5a5c3e
Notes:
github-actions[bot]
2024-12-22 11:34:54 +00:00
Author: https://github.com/shlyakpavel
Commit: 811d5a5c3e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2984
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gmta
1 changed files with 1 additions and 1 deletions
|
@ -726,7 +726,7 @@ ALWAYS_INLINE bool PosixExtendedParser::parse_sub_expression(ByteCode& stack, si
|
|||
|
||||
if (length > 1) {
|
||||
// last character is inserted into 'bytecode' for duplication symbol handling
|
||||
auto new_length = length - ((match_repetition_symbol() && length > 1) ? 1 : 0);
|
||||
auto new_length = length - (match_repetition_symbol() ? 1 : 0);
|
||||
stack.insert_bytecode_compare_string({ start_token.value().characters_without_null_termination(), new_length });
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue