I'm Dreaming of White Spaces
This commit is contained in:
parent
f4f6181923
commit
772bd39543
9 changed files with 27 additions and 27 deletions
|
|
@ -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];
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue