From 0a7c3d2cabf9559022c19f18a70ee94dce1036b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= Date: Mon, 6 Jun 2022 10:55:54 -0400 Subject: [PATCH] fix(ogcfilter): propertyislike operator crash with undefined values --- packages/geo/src/lib/filter/shared/ogc-filter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,