This is an automated email from the ASF dual-hosted git repository. willholley pushed a commit to branch mango-beginswith in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 2995acfb4486c49448d670d57546f7a71f1ac387 Author: Will Holley <[email protected]> AuthorDate: Thu Oct 19 13:43:09 2023 +0000 erlfmt fixes --- src/mango/src/mango_selector_text.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mango/src/mango_selector_text.erl b/src/mango/src/mango_selector_text.erl index 6ba4221a8..4a50ff9ba 100644 --- a/src/mango/src/mango_selector_text.erl +++ b/src/mango/src/mango_selector_text.erl @@ -144,7 +144,7 @@ convert(Path, {[{<<"$exists">>, ShouldExist}]}) -> end; convert(Path, {[{<<"$beginsWith">>, Arg}]}) when is_binary(Arg) -> Suffix = <<"*">>, - PrefixSearch = value_str(<<Arg/binary, Suffix/binary>>), + PrefixSearch = value_str(<<Arg/binary, Suffix/binary>>), {op_field, {make_field(Path, Arg), PrefixSearch}}; % We're not checking the actual type here, just looking for % anything that has a possibility of matching by checking @@ -827,7 +827,7 @@ convert_nor_test() -> convert_beginswith_test() -> ?assertEqual( - {op_field, {[[<<"field">>], <<":">>, <<"string">>],<<"\"foo\\*\"">>}}, + {op_field, {[[<<"field">>], <<":">>, <<"string">>], <<"\"foo\\*\"">>}}, convert_selector(#{<<"field">> => #{<<"$beginsWith">> => <<"foo">>}}) ).
