Skip to content

Commit

Permalink
Merge pull request #2496 from exadel-inc/fix/UI-integration-cleanup
Browse files Browse the repository at this point in the history
chore(site): enhance regex to support <script> tags with type="text/p…
  • Loading branch information
Natalie-Smirnova committed Jul 10, 2024
2 parents 3b46eb2 + 2383f2b commit 0d262fe
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 0d262fe

Please sign in to comment.