Skip to content

Commit 96677b2

Browse files
committed
merging in windows rn support.
2 parents 8437d77 + e75f22f commit 96677b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jammit/compressor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def compile_jst(paths)
9999
base_path = find_base_path(paths)
100100
compiled = paths.map do |path|
101101
contents = read_binary_file(path)
102-
contents = contents.gsub(/\n/, "\\n").gsub("'", '\\\\\'')
102+
contents = contents.gsub(/\r?\n/, "\\n").gsub("'", '\\\\\'')
103103
name = template_name(path, base_path)
104104
"#{namespace}['#{name}'] = #{Jammit.template_function}('#{contents}');"
105105
end

0 commit comments

Comments
 (0)