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
2 people authored and cbourget committed Mar 21, 2023
1 parent 117546b commit b5f0f7f
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 b5f0f7f

Please sign in to comment.