We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12832f3 commit 54cbf3cCopy full SHA for 54cbf3c
1 file changed
lib/previous-map.es6
@@ -73,12 +73,14 @@ class PreviousMap {
73
74
getAnnotationURL (sourceMapString) {
75
return sourceMapString
76
- .match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1]
+ .match(/\/\*\s*# sourceMappingURL=((?:(?!sourceMappingURL=).)*)\*\//)[1]
77
.trim()
78
}
79
80
loadAnnotation (css) {
81
- let annotations = css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//mg)
+ let annotations = css.match(
82
+ /\/\*\s*# sourceMappingURL=(?:(?!sourceMappingURL=).)*\*\//gm
83
+ )
84
85
if (annotations && annotations.length > 0) {
86
// Locate the last sourceMappingURL to avoid picking up
0 commit comments