asceth/bbcoder — Issue #9: :match does not check meta when tag is singular
Author: chrisgaunt
Created: 2012-02-15 06:02:06+00:00
State: open

```ruby
tag :img, :match => /^.*(png|bmp|jpe?g|gif)$/, :singular => true do
%()
end
```

`[img]http:://some/url/which/does/not/match/[/img]` will not work, as expected.

However, using `[img=http:://some/url/which/does/not/match/]` will still work.

Maybe providing `:match_content` & `:match_meta` would be best for the most flexibility.
The `:match` could be method alias to `:match_content` for backwards compatibility.