Skip to content
This repository
Browse code

Merge pull request #268 from heldr/master

Webp image support
  • Loading branch information...
commit 98a314a9a5557da371874255155775ed83be2c3d 2 parents 8180544 + 637b219
Jānis Skarnelis authored June 03, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  source/jquery.fancybox.js
2  source/jquery.fancybox.js
@@ -727,7 +727,7 @@
727 727
 		},
728 728
 
729 729
 		isImage: function (str) {
730  
-			return isString(str) && str.match(/\.(jp(e|g|eg)|gif|png|bmp)((\?|#).*)?$/i);
  730
+			return isString(str) && str.match(/\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$/i);
731 731
 		},
732 732
 
733 733
 		isSWF: function (str) {

0 notes on commit 98a314a

Please sign in to comment.
Something went wrong with that request. Please try again.