diff --git a/src/lib/purgeUnusedStyles.js b/src/lib/purgeUnusedStyles.js index 240a3e9c7..80fb77798 100644 --- a/src/lib/purgeUnusedStyles.js +++ b/src/lib/purgeUnusedStyles.js @@ -86,7 +86,7 @@ export default function purgeUnusedUtilities(config) { const broadMatches = content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || [] // Capture classes within other delimiters like .block(class="w-1/2") in Pug - const innerMatches = content.match(/[^<>"'`\s.(){}\[\]#=%]*[^<>"'`\s.(){}\[\]#=%:]/g) || [] + const innerMatches = content.match(/[^<>"'`\s.(){}[\]#=%]*[^<>"'`\s.(){}[\]#=%:]/g) || [] return broadMatches.concat(innerMatches) },