lib/unitsml/parser.rb in unitsml-0.2.8 vs lib/unitsml/parser.rb in unitsml-0.2.9

- old
+ new

@@ -6,9 +6,10 @@ def initialize(text) @regexp = %r{(quantity|name|symbol|multiplier):\s*} @text = text&.match(/unitsml\((.*)\)/) ? Regexp.last_match[1] : text @orig_text = @text + @text = @text.gsub("−", "-") post_extras end def parse nodes = Parse.new.parse(text)