This fixes an issue where / and \ and : where considered valid names for (#24)

replacements.
This commit is contained in:
Sergio Díaz 2018-05-17 10:01:02 -06:00 committed by GitHub
parent aba33e7fc3
commit 29940d2a24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {