Skip to content

Commit b6f3e4d

Browse files
committed
Fix unsafe regexp in getAnnotationURL() too
1 parent 4bcd727 commit b6f3e4d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/previous-map.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ class PreviousMap {
4848
}
4949

5050
getAnnotationURL(sourceMapString) {
51-
return sourceMapString
52-
.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1]
53-
.trim()
51+
return sourceMapString.match(/\/\*\s*# sourceMappingURL=(.*)\*\//)[1].trim()
5452
}
5553

5654
loadAnnotation(css) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy