Skip to content

Commit

Permalink
fix needsArguments fn
Browse files Browse the repository at this point in the history
  • Loading branch information
matronator committed May 12, 2023
1 parent a3dfb77 commit 540624b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parsem/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public static function needsArguments(string $string, ?string $pattern = null):
{
preg_match_all($pattern ?? self::PATTERN, $string, $matches);
foreach ($matches[2] as $match) {
if (!$match) {
if ($match === '') {
return true;
}
}
Expand Down

0 comments on commit 540624b

Please sign in to comment.