Skip to content

Commit

Permalink
Directives and Block names are case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
impopular-guy committed Oct 23, 2020
1 parent 0af2e3d commit 75c7a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ protected function isBlockEnd($line, $blockName = null)
$line = trim($line);
$pattern = '/^\<\/';
$pattern .= ($blockName) ? $blockName : '[^\s\>]+';
$pattern .= '\>$/';
$pattern .= '\>$/i';
return (preg_match($pattern, $line) > 0);
}

Expand Down Expand Up @@ -506,4 +506,4 @@ private function blockRegex($line)
}
return $final;
}
}
}

0 comments on commit 75c7a68

Please sign in to comment.