Skip to content

Commit 8682b1e

Browse files
committed
Fix unsafe regexp
1 parent 6f608a1 commit 8682b1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/previous-map.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class PreviousMap {
5454
}
5555

5656
loadAnnotation(css) {
57-
let annotations = css.match(/\/\*\s*# sourceMappingURL=.*\s*\*\//gm)
57+
let annotations = css.match(/\/\*\s*# sourceMappingURL=.*\*\//gm)
5858

5959
if (annotations && annotations.length > 0) {
6060
// Locate the last sourceMappingURL to avoid picking up

0 commit comments

Comments
 (0)