Skip to content

Commit

Permalink
Fix regexp for property replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Feb 12, 2020
1 parent 969bc8f commit 7497452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/machine/yaml/resolvePlaceholder.ts
Expand Up @@ -28,7 +28,7 @@ export async function resolvePlaceholder(value: string,
ctx: Pick<RepoContext, "configuration" | "context" | "skill">,
parameters: Record<string, any>,
raiseError: boolean = true): Promise<string> {
const placeholderExpression = /\$\{([!.a-zA-Z_-]+)([.:0-9a-zA-Z-_ \" ]+)*\}/g;
const placeholderExpression = /\$\{([!.a-zA-Z_-]+)([.:0-9a-zA-Z-_ \" ]*)\}/g;
if (!placeholderExpression.test(value)) {
return value;
}
Expand Down

0 comments on commit 7497452

Please sign in to comment.