Skip to content

Commit

Permalink
better regex
Browse files Browse the repository at this point in the history
  • Loading branch information
snakajima committed May 9, 2024
1 parent da63a07 commit 106933d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class ComputedNode extends Node {
assert(!!this.ifSource.nodeId, `Invalid data source ${data.if}`);
this.pendings.add(this.ifSource.nodeId);
}
const regex = /^\$\{(.+)\}$/;
const regex = /^\$\{([^{}]+)\}$/;
this.dynamicParams = Object.keys(this.params).reduce((tmp: Record<string, DataSource>, key) => {
const value = this.params[key];
const match = typeof value === "string" ? value.match(regex) : null;
Expand Down

0 comments on commit 106933d

Please sign in to comment.