summaryrefslogtreecommitdiffstats
path: root/src/regex.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex.js')
-rwxr-xr-xsrc/regex.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/regex.js b/src/regex.js
index 602d2c7..3a28e64 100755
--- a/src/regex.js
+++ b/src/regex.js
@@ -34,5 +34,8 @@ SVG.regex = {
/* test for percent value */
, isPercent: /^-?[\d\.]+%$/
+
+ /* test for image url */
+, isImage: /\.(jpg|jpeg|png|gif)(\?[^=]+.*)?/i
} \ No newline at end of file