This fixes an issue where / and \ and : where considered valid names for

replacements.
This commit is contained in:
David Diaz 2018-05-17 09:57:46 -06:00
parent d2eabfb19e
commit 26b99d8eea
1 changed files with 1 additions and 1 deletions

View File

@ -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) {