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 89a6b74 commit c551632Copy full SHA for c551632
1 file changed
lib/previous-map.js
@@ -51,7 +51,8 @@ class PreviousMap {
51
return fromBase64(text.substr(baseUriMatch[0].length))
52
}
53
54
- let encoding = text.match(/data:application\/json;([^,]+),/)[1]
+ let encoding = text.slice('data:application/json;'.length)
55
+ encoding = encoding.slice(0, encoding.indexOf(','))
56
throw new Error('Unsupported source map encoding ' + encoding)
57
58
0 commit comments