Added [Measure:EscapeRegExp] section variable for measures. This will escape any regular expression meta-characters for use with IfMatch.

This commit is contained in:
Brian Ferguson
2014-01-04 09:06:07 -07:00
parent ee281be0c7
commit 957e37fbf2
2 changed files with 52 additions and 1 deletions

View File

@ -110,6 +110,8 @@ private:
bool GetSectionVariable(std::wstring& strVariable, std::wstring& strValue);
void EscapeRegex(std::wstring& str);
static void SetVariable(std::unordered_map<std::wstring, std::wstring>& variables, const std::wstring& strVariable, const std::wstring& strValue);
static void SetVariable(std::unordered_map<std::wstring, std::wstring>& variables, const WCHAR* strVariable, const WCHAR* strValue);