Fix replace all

use replace and a global regex instead of  replaceAll
This commit is contained in:
Luis Tejeda
2022-07-07 12:57:26 -05:00
parent 0ec3f24b9c
commit 041ab9dabe

View File

@@ -88,7 +88,7 @@ function getKeyInComponents(traceFromParent, mainKey, version, commonPathFromDat
}
item = resolveFirstLevelChild(item, CONTAINERS);
resolveSecondLevelChild(trace, index, DEFINITIONS);
traceToKey.push(item.replaceAll(' ', ''));
traceToKey.push(item.replace(/\s/g, ''));
if (COMPONENTS_KEYS.includes(item)) {
matchFound = true;
break;