I'm Dreaming of White Spaces

This commit is contained in:
Jeff Parsons 2016-12-18 15:05:41 -08:00 committed by Jeff Parsons
commit 772bd39543
9 changed files with 27 additions and 27 deletions

View file

@ -450,7 +450,7 @@ class Str {
*/
static escapeHTML(sHTML)
{
return sHTML.replace(/[&<>"']/g, function (m)
return sHTML.replace(/[&<>"']/g, function(m)
{
return Str.aHTMLEscapeMap[m];
});
@ -494,7 +494,7 @@ class Str {
k = k.replace(/([\\[\]*{}().+?])/g, "\\$1");
sMatch += (sMatch ? '|' : '') + k;
}
return s.replace(new RegExp('(' + sMatch + ')', "g"), function (m)
return s.replace(new RegExp('(' + sMatch + ')', "g"), function(m)
{
return a[m];
});