Skip to content

Commit

Permalink
Fixed implementation of parser functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Sep 26, 2024
1 parent 2ebbed8 commit 371cec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ std::unique_ptr<ASTNode> Parser::exprLiteral() {
}
else if(this->peek().getType() == TokenType::REGEX) {
Token regexToken = this->consume(TokenType::REGEX);
std::string regExpression(std::move(regexToken.getImage()));
std::string regExpression(regexToken.getImage());

expr = std::make_unique<RegexExpression>(
std::make_unique<Token>(regexToken),
Expand Down

0 comments on commit 371cec5

Please sign in to comment.