lib/nanoc/data_sources/filesystem.rb in nanoc-4.0.0 vs lib/nanoc/data_sources/filesystem.rb in nanoc-4.0.1
- old
+ new
@@ -295,10 +295,10 @@
raise_encoding_error(filename, original_encoding)
end
end
# Remove UTF-8 BOM (ugly)
- data.gsub!("\xEF\xBB\xBF", '')
+ data.delete!("\xEF\xBB\xBF")
data
end
# Raises an invalid encoding error for the given filename and encoding.