Skip to content

Commit

Permalink
chore(site): enhance regex to support <script> tags with type="text/p…
Browse files Browse the repository at this point in the history
…lain"
  • Loading branch information
Natalie-Smirnova committed Jul 9, 2024
1 parent c48d803 commit 2383f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/11ty/htmlmin.transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const MINIFICATION_CFG = {
ignoreCustomFragments: [
/<%[\s\S]*?%>/,
/<\?[\s\S]*?\?>/,
/<script\stype="text\/html"\s*[\s\S]*?<\/script>/i
/<script\s+[^>]*type="text\/(?:html|plain)"[^>]*>[\s\S]*?<\/script>/i
]
};

Expand Down

0 comments on commit 2383f2b

Please sign in to comment.