mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
handle carriage return in strip_newline, closes #126
This commit is contained in:
@@ -68,7 +68,7 @@ module Liquid
|
||||
|
||||
# Remove all newlines from the string
|
||||
def strip_newlines(input)
|
||||
input.to_s.gsub(/\n/, '')
|
||||
input.to_s.gsub(/\r?\n/, '')
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user