Skip to content

Commit 75c7a68

Browse files
committed
Directives and Block names are case-insensitive
1 parent 0af2e3d commit 75c7a68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ protected function isBlockEnd($line, $blockName = null)
342342
$line = trim($line);
343343
$pattern = '/^\<\/';
344344
$pattern .= ($blockName) ? $blockName : '[^\s\>]+';
345-
$pattern .= '\>$/';
345+
$pattern .= '\>$/i';
346346
return (preg_match($pattern, $line) > 0);
347347
}
348348

@@ -506,4 +506,4 @@ private function blockRegex($line)
506506
}
507507
return $final;
508508
}
509-
}
509+
}

0 commit comments

Comments
 (0)