Skip to content

Conversation

@jefleponot
Copy link

It's easiest to use a regular expression to match ${param} , isn't it :-)

text.replace(/${(\w+)}/g, function(match, varName) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant