diff --git a/packages/geo/src/lib/filter/shared/ogc-filter.ts b/packages/geo/src/lib/filter/shared/ogc-filter.ts index ee3b21cc22..ac1522b507 100644 --- a/packages/geo/src/lib/filter/shared/ogc-filter.ts +++ b/packages/geo/src/lib/filter/shared/ogc-filter.ts @@ -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,