lib/coconductor/vendorer.rb in coconductor-0.10.0 vs lib/coconductor/vendorer.rb in coconductor-0.10.1
- old
+ new
@@ -113,10 +113,10 @@
content.gsub!(/ ?{% .* %} ?/, '')
content.squeeze(' ').strip
end
def normalize_implicit_fields(content)
- content.gsub!(/#{UPPERCASE_WORD_REGEX} #{UPPERCASE_WORD_REGEX}/) do |m|
+ content.gsub!(/#{UPPERCASE_WORD_REGEX} #{UPPERCASE_WORD_REGEX}/o) do |m|
m.tr(' ', '_')
end
content.gsub(UNMARKED_FIELD_REGEX) { |m| "[#{m}]" }
end