Skip to content

Commit

Permalink
better regex pattern matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Mole1424 committed Jan 11, 2025
1 parent a4b0b17 commit cc1fff9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions purgecss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ module.exports = {
safelist: [
"dropdown", "dropdown-menu", "dropdown-item", "dropdown-toggle",
"nav-item", "nav-link", "me-lg-2",
{
pattern: /a\[href\^="https:\/\/"\]:not/,
variants: ["after"]
},
/day-2/, /day-3/
{ pattern: /^a\[href\^="https:\/\/"\]:not\(/ },
{ pattern: /day-\d/ },
]
};

0 comments on commit cc1fff9

Please sign in to comment.