expr: Fix parsing regex range quantifier

This commit is contained in:
Teemu Pätsi
2025-05-27 16:47:43 +03:00
parent ca6a10ea9a
commit 2b565612ee
+3 -2
View File
@@ -295,8 +295,9 @@ where
if pattern_chars_clone.peek().is_none() {
return Err(ExprError::UnmatchedOpeningBrace);
}
quantifier.push(curr);
if prev != '\0' {
quantifier.push(prev);
}
prev = curr;
}