Skip to content

Commit

Permalink
refactor: more !== 1 compare on preg_match()
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 27, 2024
1 parent a9b0261 commit c40986f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/View/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ public function shouldAddEscaping(string $key)
$escape = false;
}
// If no `esc` filter is found, then we'll need to add one.
elseif (in_array(preg_match('/\s+esc/u', $key), [0, false], true)) {
elseif (preg_match('/\s+esc/u', $key) !== 1) {
$escape = 'html';
}

Expand Down

0 comments on commit c40986f

Please sign in to comment.