Skip to content

Commit

Permalink
SqlProcessor: Fix regex comment (#274)
Browse files Browse the repository at this point in the history
The escaping syntax introduced in 6330fdd does not use percents.
  • Loading branch information
jtojnar authored Jan 5, 2025
1 parent cfdad5a commit 40167b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SqlProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function process(array $args): string

$i = $j;
$fragments[] = preg_replace_callback(
'#%((?:\.\.\.)?+\??+\w++(?:\[]){0,2}+)|(%%)|(\[\[)|(]])|\[(.+?)]#S', // %modifier | %% | %[ | %] | [identifier]
'#%((?:\.\.\.)?+\??+\w++(?:\[]){0,2}+)|(%%)|(\[\[)|(]])|\[(.+?)]#S', // %modifier | %% | [[ | ]] | [identifier]
function($matches) use ($args, &$j, $last): string {
if ($matches[1] !== '') {
if ($j === $last) {
Expand Down

0 comments on commit 40167b9

Please sign in to comment.