diff --git a/src/facebox.js b/src/facebox.js index 5ad90ed..118e8ab 100644 --- a/src/facebox.js +++ b/src/facebox.js @@ -172,7 +172,7 @@ makeCompatible() var imageTypes = $.facebox.settings.imageTypes.join('|') - $.facebox.settings.imageTypesRegexp = new RegExp('\.(' + imageTypes + ')$', 'i') + $.facebox.settings.imageTypesRegexp = new RegExp('\.(' + imageTypes + ')($|\\?)', 'i') if (settings) $.extend($.facebox.settings, settings) $('body').append($.facebox.settings.faceboxHtml)