提交 b307369d 编写于 作者: I isidor

fix regex for command replacment fixes #21297

上级 82934432
......@@ -223,7 +223,7 @@ export class ConfigurationResolverService implements IConfigurationResolverServi
if (object[key] && typeof object[key] === 'object') {
findInteractiveVariables(object[key]);
} else if (typeof object[key] === 'string') {
object[key] = object[key].replace(new RegExp('command.', 'g'), 'command:');
object[key] = object[key].replace(new RegExp('command\\.', 'g'), 'command:');
const matches = /\${command:(.+)}/.exec(object[key]);
if (matches && matches.length === 2) {
const interactiveVariable = matches[1];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册