lib/appstats/parser.rb in appstats-0.22.5 vs lib/appstats/parser.rb in appstats-0.22.6
- old
+ new
@@ -276,11 +276,16 @@
current_text.blank?
loop do
break if @tokenize_regex.blank?
m = current_text.match(/^(#{@tokenize_regex_no_spaces})(.*)$/im)
break if m.nil? || m[1].blank?
- add_constant(m[1])
+ constant = m[1]
current_text = m[2]
+ if (!current_text.match(/^[^\s]/).nil? && !constant.match(/^[a-zA-Z]*$/).nil?)
+ current_text = m[0]
+ break
+ end
+ add_constant(constant)
current_text.strip! unless current_text.nil?
end
current_text
end
\ No newline at end of file