File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,23 @@ export default class PreviousMap {
36
36
}
37
37
38
38
decodeInline ( text ) {
39
+ let utfd64 = 'data:application/json;charset=utf-8;base64,' ;
40
+ let utf64 = 'data:application/json;charset=utf8;base64,' ;
41
+ let b64 = 'data:application/json;base64,' ;
39
42
let uri = 'data:application/json,' ;
40
- let base64 = 'data:application/json;base64,' ;
41
43
42
44
if ( this . startWith ( text , uri ) ) {
43
45
return decodeURIComponent ( text . substr ( uri . length ) ) ;
44
46
45
47
} else if ( this . startWith ( text , base64 ) ) {
46
48
return Base64 . decode ( text . substr ( base64 . length ) ) ;
47
49
50
+ } else if ( this . startWith ( text , utf64 ) ) {
51
+ return Base64 . decode ( text . substr ( utf64 . length ) ) ;
52
+
53
+ } else if ( this . startWith ( text , utfd64 ) ) {
54
+ return Base64 . decode ( text . substr ( utfd64 . length ) ) ;
55
+
48
56
} else {
49
57
let encoding = text . match ( / d a t a : a p p l i c a t i o n \/ j s o n ; ( [ ^ , ] + ) , / ) [ 1 ] ;
50
58
throw new Error ( 'Unsupported source map encoding ' + encoding ) ;
You can’t perform that action at this time.
0 commit comments