diff --git a/svg-injector.js b/svg-injector.js index 137cf59..ac5acb6 100644 --- a/svg-injector.js +++ b/svg-injector.js @@ -187,7 +187,7 @@ var imgUrl = el.getAttribute('data-src') || el.getAttribute('src'); // We can only inject SVG - if (!(/svg$/i).test(imgUrl)) { + if (!(/\.svg/i).test(imgUrl)) { callback('Attempted to inject a file with a non-svg extension: ' + imgUrl); return; }