Skip to content

Commit 5be0bef

Browse files
authored
Merge pull request #6 from Manc/fix-imports
More restrictive RegEx for class name
2 parents e92d04b + 02a8712 commit 5be0bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function getClasses(content) {
6060
return classes;
6161
}
6262

63-
const classesRegex = /"([^"\\]+)":/g;
63+
const classesRegex = /"([^"\\/;()\n]+)":/g;
6464

6565
/**
6666
* @param {string} [path]

0 commit comments

Comments
 (0)