mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Fix replace all
use replace and a global regex instead of replaceAll
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user