Fix recursion exit condition in variable resolver

This commit is contained in:
Alex Ross 2021-05-31 14:48:42 +02:00
parent 0fde806bf8
commit cc8ff11f57
No known key found for this signature in database
GPG key ID: 89DDDBA66CBA7840

View file

@ -152,7 +152,7 @@ export class AbstractVariableResolverService implements IConfigurationResolverSe
resolvedVariables.set(variable, resolvedValue);
}
if (resolvedValue.match(AbstractVariableResolverService.VARIABLE_REGEXP)) {
if ((resolvedValue !== match) && types.isString(resolvedValue) && resolvedValue.match(AbstractVariableResolverService.VARIABLE_REGEXP)) {
resolvedValue = this.resolveString(environment, folderUri, resolvedValue, commandValueMapping, resolvedVariables);
}