mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-02-04 19:14:30 +00:00
fix smiles
This commit is contained in:
parent
c15731ebd1
commit
39ff8e4480
@ -81,9 +81,15 @@
|
||||
var rep = $s.replacement
|
||||
.replace(/\{eId\}/g, $s.map[pattern]);
|
||||
|
||||
text = text
|
||||
.replace(new RegExp($t.quote(pattern), "g"), rep)
|
||||
.replace(new RegExp($t.quote(encPattent), "g"), rep);
|
||||
if (pattern[0] === ';') {
|
||||
text = text
|
||||
.replace(new RegExp("(^|\W)" + $t.quote(pattern), "g"), "\\1" + rep)
|
||||
.replace(new RegExp("(^|\W)" + $t.quote(encPattent), "g"), "\\1" + rep);
|
||||
} else {
|
||||
text = text
|
||||
.replace(new RegExp($t.quote(pattern), "g"), rep)
|
||||
.replace(new RegExp($t.quote(encPattent), "g"), rep);
|
||||
}
|
||||
}
|
||||
|
||||
return text;
|
||||
|
@ -238,9 +238,7 @@ function htmlFormatMsg( msg, output, mentions ) {
|
||||
|
||||
function _parseText(text)
|
||||
{
|
||||
text = unescapeHtmlEntities(text);
|
||||
text = $.emotions(text);
|
||||
text = escapeHtmlEntities(text);
|
||||
return text;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user