fix(show-hide-when): remove whitespaces from conditions before check phase (#9573)

This commit is contained in:
Russian Rebouças
2017-01-03 13:16:49 -03:00
committed by Brandy Carney
parent 3643803230
commit cd342c29d4

View File

@ -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