Skip to content

Commit

Permalink
Better Regex
Browse files Browse the repository at this point in the history
  • Loading branch information
SmushyTaco authored Jan 2, 2025
1 parent ae2b8ba commit d8c6275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const cssLoaders = [
{
discardComments: {
remove(comment) {
return !/(\!rtl)/.test(comment);
return !/^\s*!?\s*rtl:/.test(comment);
},
},
cssDeclarationSorter: false
Expand Down

0 comments on commit d8c6275

Please sign in to comment.