lib/lita/util.rb in lita-3.1.0 vs lib/lita/util.rb in lita-3.2.0

- old
+ new

@@ -20,10 +20,10 @@ # @return [String] The transformed word. def underscore(camel_cased_word) word = camel_cased_word.to_s.dup word.gsub!("::", "/") word.gsub!(/(?:([A-Za-z\d])|^)(#{ACRONYM_REGEX})(?=\b|[^a-z])/) do - "#{Regexp.last_match[1]}#{Regexp.last_match[1] && '_'}#{Regexp.last_match[2].downcase}" + "#{Regexp.last_match[1]}#{Regexp.last_match[1] && "_"}#{Regexp.last_match[2].downcase}" end word.gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2') word.gsub!(/([a-z\d])([A-Z])/, '\1_\2') word.tr!("-", "_") word.downcase!