diff --git a/lib/shortcode/parser.rb b/lib/shortcode/parser.rb index 7f06114..042c302 100644 --- a/lib/shortcode/parser.rb +++ b/lib/shortcode/parser.rb @@ -35,7 +35,7 @@ class Shortcode::Parser < Parslet::Parser def match_any_of(tags) return str('') if tags.length < 1 - tags.map{ |tag| str(tag) }.inject do |tag_chain, tag| + tags.map{ |tag| str(tag.to_s) }.inject do |tag_chain, tag| tag_chain.send :|, tag end end