Skip to content

Commit

Permalink
fix(ogcfilter): propertyislike operator crash with undefined values (#…
Browse files Browse the repository at this point in the history
…1069)

Co-authored-by: Pierre-Étienne Lord <[email protected]>
  • Loading branch information
pelord and Pierre-Étienne Lord authored Jun 6, 2022
1 parent 3779502 commit 3e8151e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/geo/src/lib/filter/shared/ogc-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class OgcFilterWriter {
case OgcFilterOperator.PropertyIsLike.toLowerCase():
return olfilter.like(
wfsPropertyName,
wfsPattern.replace(/[()_]/gi, wfsSingleChar),
wfsPattern ? wfsPattern.replace(/[()_]/gi, wfsSingleChar): wfsWildCard,
wfsWildCard,
wfsSingleChar,
wfsEscapeChar,
Expand Down

0 comments on commit 3e8151e

Please sign in to comment.