mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
also trim custom transform value
This commit is contained in:
parent
69c03f483d
commit
54fd5f3c47
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ defmodule Search.Parser do
|
||||||
defp field_top(parser, tokens), do: field_term(parser, tokens)
|
defp field_top(parser, tokens), do: field_term(parser, tokens)
|
||||||
|
|
||||||
defp field_term(parser, [custom_field: field_name, range: :eq, value: value]) do
|
defp field_term(parser, [custom_field: field_name, range: :eq, value: value]) do
|
||||||
case parser.transforms[field_name].(parser.__data__, value) do
|
case parser.transforms[field_name].(parser.__data__, String.trim(value)) do
|
||||||
{:ok, child} ->
|
{:ok, child} ->
|
||||||
{:ok, {child, []}}
|
{:ok, {child, []}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue