Skip to content
Browse files

show image without defined format ends

  • Loading branch information...
1 parent 99bedf9 commit d14422ef7217a84dcc188960db9d6a1c8a495d83 @xinuc committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/bb-ruby.rb
View
4 lib/bb-ruby.rb
@@ -163,13 +163,13 @@ module BBRuby
'[img size=96x96]http://www.google.com/intl/en_ALL/images/logo.gif[/img]',
:image],
'Image (Alternative)' => [
- /\[img=([^\[\]].*?)\.(#{@@imageformats})\]/im,
+ /\[img=([^\[\]].*?)\]/im,
'<img src="\1.\2" alt="" />',
'Display an image (alternative format)',
'[img=http://myimage.com/logo.gif]',
:image],
'Image' => [
- /\[img(:.+)?\]([^\[\]].*?)\.(#{@@imageformats})\[\/img\1?\]/im,
+ /\[img(:.+)?\]([^\[\]].*?)\[\/img\1?\]/im,
'<img src="\2.\3" alt="" />',
'Display an image',
'Check out this crazy cat: [img]http://catsweekly.com/crazycat.jpg[/img]',

0 comments on commit d14422e

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