Skip to content
Browse files

compact the matches

  • Loading branch information...
1 parent e5eb97c commit fd523289c320bfc0d8c7ab037829441b6f19404c @bradleypriest committed Feb 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 parser.rb
View
2 parser.rb
@@ -24,7 +24,7 @@ def matches
@string.gsub reg_exp do
matches << $1
end
- matches
+ matches.compact
rescue
[]
end

0 comments on commit fd52328

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