mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 06:08:11 +00:00
* refactor: fix issues arose from #7029 * refactor: move replaceAll -> replace in makeKeyString * fix: move order of escape to backslash first * style: lint
This commit is contained in:
@ -99,7 +99,9 @@ function makeKeyString(identifier) {
|
||||
return identifier.key;
|
||||
}
|
||||
|
||||
return [identifier.namespace.replace(/:/g, '\\:'), identifier.key].join(':');
|
||||
return [identifier.namespace.replace(/\\/g, '\\\\').replace(/:/g, '\\:'), identifier.key].join(
|
||||
':'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user