Skip to content

Commit

Permalink
Ignore case
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Jun 26, 2023
1 parent 51b2ac8 commit 1681210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Magento2/Sniffs/Legacy/PhtmlTemplateSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private function checkBlockVariable(File $phpcsFile, int $stackPtr, array $token
private function checkHtml(File $phpcsFile, int $stackPtr): void
{
$content = $phpcsFile->getTokensAsString($stackPtr, 1);
$pattern = '_\s+type=(["\'])text/javascript\1_';
$pattern = '_\s+type=(["\'])text/javascript\1_i';

if (preg_match($pattern, $content)) {
$fix = $phpcsFile->addFixableWarning(
Expand Down

0 comments on commit 1681210

Please sign in to comment.