Fix typos in wxJSScriptWrapper comments

No real changes.
This commit is contained in:
Vadim Zeitlin 2017-10-22 17:26:36 +02:00
parent c45e674fa0
commit 71522731c6

View File

@ -26,12 +26,12 @@ public:
m_outputVarName = wxString::Format("__wx$%i", (*runScriptCount)++); m_outputVarName = wxString::Format("__wx$%i", (*runScriptCount)++);
} }
// This method is used to add a double quote level into a JavasSript code // This method is used to add a double quote level into a JavaScript code
// in order to get it working when eval is called programmatically. // in order to get it working when eval is called programmatically.
const wxString GetWrappedCode() const wxString GetWrappedCode()
{ {
// Adds one escape level if there is a single quote, double quotes or // Adds one escape level if there is a single quote, double quotes or
// esacape characters // escape characters
wxRegEx escapeDoubleQuotes("(\\\\*)(['\"\n\r\v\t\b\f])"); wxRegEx escapeDoubleQuotes("(\\\\*)(['\"\n\r\v\t\b\f])");
escapeDoubleQuotes.Replace(&m_jsscript,"\\1\\1\\\\\\2"); escapeDoubleQuotes.Replace(&m_jsscript,"\\1\\1\\\\\\2");