Skip to content

Commit 02a8712

Browse files
committed
More restrictive RegEx
1 parent e92d04b commit 02a8712

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)