Fix regex and current() system.

This commit is contained in:
2026-09-03 07:42:50 +01:00
parent 33dc9ad507
commit f8975a60d8
5 changed files with 21 additions and 29 deletions
+2 -1
View File
@@ -165,12 +165,13 @@ void Parser::operation() {
j++;
}
std::string replacement(peek_str(j));
std::string options;
if (peek(j) != '\0') {
advance(j + 1);
} else {
advance(j);
options = "p";
}
std::string options;
if (peek() != '\0') {
options = std::string(peek_str());
advance(peek_str().size());