lib/regxing/generator.rb in regxing-0.0.1.beta vs lib/regxing/generator.rb in regxing-0.1.0.beta

- old
+ new

@@ -5,14 +5,13 @@ def initialize(regex) @regex = RegXing::Regex.new(regex) end def generate! - expression = regex.to_s str = "" regex.split.each do |el| - str << compile(el) + str << compile(el.first) * el.last end str end