mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibRegex: Remove duplicated condition
This commit is contained in:
committed by
Andreas Kling
parent
7dd7f77219
commit
811d5a5c3e
Notes:
github-actions[bot]
2024-12-22 11:34:54 +00:00
Author: https://github.com/shlyakpavel Commit: https://github.com/LadybirdBrowser/ladybird/commit/811d5a5c3e0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2984 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/gmta
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user