From 816d17caad7704f3bda9a5f4eec8812f4684de4f Mon Sep 17 00:00:00 2001 From: Pranav Anilkumar Wani Date: Mon, 10 Aug 2020 19:48:07 +0530 Subject: [PATCH] Add support to use `$` Can use `$` as: "{{$ip}}" --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3e9cdb7..6fd34b4 100644 --- a/index.js +++ b/index.js @@ -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 = [];