Skip to content

Commit

Permalink
Fix incorrect parsing of classes with dots in them
Browse files Browse the repository at this point in the history
Fixes #62
  • Loading branch information
vadimdemedes committed Feb 12, 2021
1 parent facf9f0 commit 06259ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ module.exports = source => {
for (const rule of stylesheet.rules) {
if (rule.type === 'rule') {
for (const selector of rule.selectors) {
const utility = selector.replace(/^\./, '').replace('\\/', '/');
const utility = selector.replace(/^\./, '').replace('\\', '');

if (isUtilitySupported(utility, rule)) {
styles[utility] = getStyles(rule);
Expand Down

0 comments on commit 06259ec

Please sign in to comment.