public
Description: Facebook-style lightbox, built in jQuery
Homepage: http://famspam.com/facebox/
Clone URL: git://github.com/defunkt/facebox.git
Click here to lend your support to: facebox and make a donation at www.pledgie.com !
Fixed image matching regex.

".png test".match($.facebox.settings.imageTypesRegexp) would match 
(incorrect behavior)
".gif test".match($.facebox.settings.imageTypesRegexp) would not match
webweaver (author)
Thu Jun 05 03:44:31 -0700 2008
commit  3211367cab73233af66dac2710c94682f3f3b9b2
tree    3ba40102fc75664d99dabc7901bcc795bbfb2c4d
parent  9b8c6e544533e17ffdf2c2f8f45936b18a852e0a
...
184
185
186
187
 
188
189
190
...
184
185
186
 
187
188
189
190
0
@@ -184,7 +184,7 @@
0
     makeCompatible()
0
 
0
     var imageTypes = $.facebox.settings.imageTypes.join('|')
0
- $.facebox.settings.imageTypesRegexp = new RegExp('\.' + imageTypes + '$', 'i')
0
+ $.facebox.settings.imageTypesRegexp = new RegExp('\.(' + imageTypes + ')$', 'i')
0
 
0
     if (settings) $.extend($.facebox.settings, settings)
0
     $('body').append($.facebox.settings.faceboxHtml)

Comments

    No one has commented yet.