Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix unsafe regexp in getAnnotationURL() too
  • Loading branch information
ai committed Apr 11, 2021
1 parent 4bcd727 commit b6f3e4d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/previous-map.js
Expand Up @@ -48,9 +48,7 @@ class PreviousMap {
}

getAnnotationURL(sourceMapString) {
return sourceMapString
.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1]
.trim()
return sourceMapString.match(/\/\*\s*# sourceMappingURL=(.*)\*\//)[1].trim()
}

loadAnnotation(css) {
Expand Down

0 comments on commit b6f3e4d

Please sign in to comment.