From a9ba5b0bb7281640342ff6267a88719809e6d5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20D=C3=ADaz?= Date: Thu, 17 May 2018 10:52:35 -0600 Subject: [PATCH] : is valid as a variable when talking about hosts. (#25) --- src/shared.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared.js b/src/shared.js index 98139fb..8a7e68b 100644 --- a/src/shared.js +++ b/src/shared.js @@ -11,7 +11,7 @@ const httpVerbs = [ ]; const requestRegex = new RegExp(`(${httpVerbs.join('|')})\\s(.*)`, 'i'); -const replacementRegex = /(?:\\?)\$([a-zA-Z\.\d\-\_]+)/g; +const replacementRegex = /(?:\\?)\$([a-zA-Z\.\d\-\_\:]+)/g; const dynamicValueRegex = /\$\[(\w+\((?:.|[\n\r])*?\))\]/g; const UpperCaseKeys = function(obj) {