diff --git a/Libraries/LibRegex/RegexParser.cpp b/Libraries/LibRegex/RegexParser.cpp index 5a0fc608646..16cc9ed8e10 100644 --- a/Libraries/LibRegex/RegexParser.cpp +++ b/Libraries/LibRegex/RegexParser.cpp @@ -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 }); }