mirror of
https://github.com/kemko/liquid.git
synced 2026-01-02 08:15:41 +03:00
Compare commits
3 Commits
v3.0.5
...
3-0-stable
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d19fdde7f | ||
|
|
e934826820 | ||
|
|
529cc60ef1 |
@@ -316,7 +316,7 @@ module Liquid
|
||||
else
|
||||
nil
|
||||
end
|
||||
rescue ArgumentError
|
||||
rescue ::ArgumentError
|
||||
nil
|
||||
end
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# encoding: utf-8
|
||||
module Liquid
|
||||
VERSION = "3.0.5"
|
||||
VERSION = "3.0.6"
|
||||
end
|
||||
|
||||
@@ -379,6 +379,11 @@ class StandardFiltersTest < Minitest::Test
|
||||
assert_template_result('a',"{{ 'a' | to_number }}")
|
||||
end
|
||||
|
||||
def test_date_raises_nothing
|
||||
assert_template_result('', "{{ '' | date: '%D' }}")
|
||||
assert_template_result('abc', "{{ 'abc' | date: '%D' }}")
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def with_timezone(tz)
|
||||
|
||||
Reference in New Issue
Block a user