lib/eco/data/files/helpers.rb in eco-helpers-1.3.19 vs lib/eco/data/files/helpers.rb in eco-helpers-1.4.0
- old
+ new
@@ -69,10 +69,10 @@
return bytes.unpack("C*") == [239, 187, 191]
end
end
def encoding(path)
- has_bom?(path) ? "bom|utf-8" : "utf-8"
+ has_bom?(path) ? "bom" : "utf-8"
end
def script_subfolder
basename = File.basename($0, File.extname($0))
path = File.dirname($0)