mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
fix variable output with quoted strings containing pipe ("|") characters
This commit is contained in:
@@ -116,6 +116,10 @@ class StandardFiltersTest < Test::Unit::TestCase
|
||||
assert_equal 'a a a', @filters.remove_first("a a a a", 'a ')
|
||||
assert_template_result 'a a a', "{{ 'a a a a' | remove_first: 'a ' }}"
|
||||
end
|
||||
|
||||
def test_pipes_in_string_arguments
|
||||
assert_template_result 'foobar', "{{ 'foo|bar' | remove: '|' }}"
|
||||
end
|
||||
|
||||
def test_strip_newlines
|
||||
assert_template_result 'abc', "{{ source | strip_newlines }}", 'source' => "a\nb\nc"
|
||||
|
||||
Reference in New Issue
Block a user