From 311977b56f26765b339bdd7931bd8cf5b0190a08 Mon Sep 17 00:00:00 2001 From: mroux Date: Thu, 27 Sep 2018 12:05:49 -0700 Subject: [PATCH] UI-3188: Fixed an issue where some feature codes would not be properly displayed with a * before the number (#83) --- submodules/featureCodes/featureCodes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/featureCodes/featureCodes.js b/submodules/featureCodes/featureCodes.js index 9b85cd4..485b05f 100644 --- a/submodules/featureCodes/featureCodes.js +++ b/submodules/featureCodes/featureCodes.js @@ -115,7 +115,7 @@ define(function(require) { if (callflow.featurecode.hasOwnProperty('name')) { var category = 'misc', i18nFeatureCode = self.i18n.active().featureCodes.labels[callflow.featurecode.name], - hasStar = (callflow.hasOwnProperty('numbers') && callflow.numbers.length && callflow.numbers[0].substr(0, 1) === '*') || (callflow.hasOwnProperty('patterns') && callflow.patterns.length && callflow.patterns[0].substr(0, 3) === '^\\*'); + hasStar = (callflow.hasOwnProperty('numbers') && callflow.numbers.length && callflow.numbers[0].substr(0, 1) === '*') || (callflow.hasOwnProperty('patterns') && callflow.patterns.length && (_.startsWith(callflow.patterns[0], '^\\*') || _.startsWith(callflow.patterns[0], '\\*'))); _.find(self.categories, function(cat, key) { if (cat.indexOf(callflow.featurecode.name) >= 0) {