File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ var Loader = function (data) {
258258 url = urlMatch [ 2 ] ;
259259 logger . log ( urlMatch [ 0 ] ) ;
260260
261- if ( url && ! utils . isEmbeddedImage ( url ) ) {
261+ if ( url && ! utils . isEmbeddedSource ( url ) ) {
262262 var urlAbsolutePath = utils . getAbsolutePath ( cssRemotePath , url ) ;
263263 var result = loadFileFromUrl ( urlAbsolutePath , cssLocalDirname ) ;
264264
Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ function pathToUnixFormat(filepath) {
4646}
4747
4848// Check if path contains base64 encoded image
49- function isEmbeddedImage ( path ) {
50- var embeddedImageRegexp = / d a t a : i m a g e \/ / ;
49+ function isEmbeddedSource ( path ) {
50+ var embeddedImageRegexp = / d a t a : ( . * ? ) ; b a s e 6 4 , / ;
5151 return embeddedImageRegexp . test ( path ) ;
5252}
5353
5454module . exports . getAbsolutePath = getAbsolutePath ;
5555module . exports . pathToUnixFormat = pathToUnixFormat ;
56- module . exports . isEmbeddedImage = isEmbeddedImage ;
56+ module . exports . isEmbeddedSource = isEmbeddedSource ;
5757module . exports . trimUrl = trimUrl ;
5858module . exports . trimFilename = trimFilename ;
You can’t perform that action at this time.
0 commit comments