Skip to content

Commit

Permalink
Merge pull request #5138 from morozov/issues/5137
Browse files Browse the repository at this point in the history
Make the SQL parser regular expression less greedy
  • Loading branch information
derrabus authored Dec 23, 2021
2 parents 5b6b7ff + fd4aeb7 commit b4f49c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SQL/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __construct(bool $mySQLStringEscaping)
self::OTHER,
]);

$this->sqlPattern = sprintf('(%s)+', implode('|', $patterns));
$this->sqlPattern = sprintf('(%s)', implode('|', $patterns));
}

/**
Expand Down

0 comments on commit b4f49c0

Please sign in to comment.