Skip to content

Commit

Permalink
Merge pull request fancyapps#522 from mbasaglia/master
Browse files Browse the repository at this point in the history
Adding SVG support
  • Loading branch information
fancyapps committed Jun 12, 2013
2 parents 496a396 + 8703cac commit be679a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/jquery.fancybox.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@
},

isImage: function (str) {
return isString(str) && str.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i);
return isString(str) && str.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i);
},

isSWF: function (str) {
Expand Down
4 changes: 2 additions & 2 deletions source/jquery.fancybox.pack.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit be679a9

Please sign in to comment.