Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/postcss/lib/previous-map.js
rd565449 r0c6b92a 1 1 'use strict' 2 2 3 let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')4 3 let { existsSync, readFileSync } = require('fs') 5 4 let { dirname, join } = require('path') 5 let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js') 6 6 7 7 function fromBase64(str) { … … 42 42 let uri = /^data:application\/json,/ 43 43 44 if (charsetUri.test(text) || uri.test(text)) { 45 return decodeURIComponent(text.substr(RegExp.lastMatch.length)) 44 let uriMatch = text.match(charsetUri) || text.match(uri) 45 if (uriMatch) { 46 return decodeURIComponent(text.substr(uriMatch[0].length)) 46 47 } 47 48 48 if (baseCharsetUri.test(text) || baseUri.test(text)) { 49 return fromBase64(text.substr(RegExp.lastMatch.length)) 49 let baseUriMatch = text.match(baseCharsetUri) || text.match(baseUri) 50 if (baseUriMatch) { 51 return fromBase64(text.substr(baseUriMatch[0].length)) 50 52 } 51 53 … … 68 70 69 71 loadAnnotation(css) { 70 let comments = css.match(/\/\*\s*# sourceMappingURL=/g m)72 let comments = css.match(/\/\*\s*# sourceMappingURL=/g) 71 73 if (!comments) return 72 74
Note:
See TracChangeset
for help on using the changeset viewer.