From 3e8151e56a6d067180c030ad050af67fe8971d15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= <7397743+pelord@users.noreply.github.com> Date: Mon, 6 Jun 2022 15:27:04 -0400 Subject: [PATCH] fix(ogcfilter): propertyislike operator crash with undefined values (#1069) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pierre-Étienne Lord --- 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,