From cd342c29d4d3092467d27eaa5afe235cc5b1dcff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Russian=20Rebou=C3=A7as?= Date: Tue, 3 Jan 2017 13:16:49 -0300 Subject: [PATCH] fix(show-hide-when): remove whitespaces from conditions before check phase (#9573) --- src/components/show-hide-when/show-hide-when.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/show-hide-when/show-hide-when.ts b/src/components/show-hide-when/show-hide-when.ts index 2a2f8f75e1e..9c4003c8941 100644 --- a/src/components/show-hide-when/show-hide-when.ts +++ b/src/components/show-hide-when/show-hide-when.ts @@ -15,7 +15,7 @@ export class DisplayWhen { if (!conditions) return; - this.conditions = conditions.split(','); + this.conditions = conditions.replace(/\s/g, '').split(','); // check if its one of the matching platforms first // a platform does not change during the life of an app