Skip to content

Commit

Permalink
Add support to use $
Browse files Browse the repository at this point in the history
Can use `$` as: "{{$ip}}"
  • Loading branch information
Pranav Anilkumar Wani authored Aug 10, 2020
1 parent 4075a74 commit 816d17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function parse(value) {
const parseString = (() => {
// This regular expression detects instances of the
// template parameter syntax such as {{foo}} or {{foo:someDefault}}.
const regex = /{{(\w|:|[\s-+.,@/\//()?=*_])+}}/g;
const regex = /{{(\w|:|[\s-+.,@/\//()?=*_$])+}}/g;

return str => {
let parameters = [];
Expand Down

0 comments on commit 816d17c

Please sign in to comment.