Skip to content

Commit e3a03a0

Browse files
committed
update format definition
1 parent a8a4508 commit e3a03a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/value_formatters.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ defmodule ValueFormatters do
6767
end
6868

6969
# In case of a shorthand formatDefinition, expand it
70-
defp expand_format_definition(format_definition, _value)
71-
when format_definition in ["number", "string", "date", "date_relative", "coordinates"] do
70+
defp expand_format_definition(format_definition, _value) when is_binary(format_definition) do
7271
%{"format" => format_definition}
7372
end
7473

0 commit comments

Comments
 (0)