Skip to content

fix(lib): Ensure match and match_phrase handle empty Variables#112

Merged
orangejulius merged 1 commit intomasterfrom
fix-lib-variable-handling
Oct 3, 2019
Merged

fix(lib): Ensure match and match_phrase handle empty Variables#112
orangejulius merged 1 commit intomasterfrom
fix-lib-variable-handling

Conversation

@orangejulius
Copy link
Copy Markdown
Member

We want the match and match_phrase helper functions to gracefully handle the case where a variable has no value, which internally is an empty string.

This requires doing an explicit comparison to ensure that optional parameters are not set unless the variable is actually defined.

We want the match and match_phrase helper functions to gracefully handle
the case where a variable has no value, which internally is an empty
string.

This requires doing an explicit comparison to ensure that optional
parameters are not set unless the variable is actually defined.
@orangejulius orangejulius merged commit 629307c into master Oct 3, 2019
@orangejulius orangejulius deleted the fix-lib-variable-handling branch October 3, 2019 17:40
orangejulius added a commit that referenced this pull request Oct 3, 2019
This change builds on the previous series of PRs
(#112,
and #111) to support the `slop`
parameter on the `match_phrase` queries responsible for handling street
addresses.

Replaces #101
Connects pelias/api#1322
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant