[Client] Trim text
This commit is contained in:
parent
425b3cffdc
commit
03bab95a1f
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,9 @@ module.exports = (tokens, shouldBreak) => {
|
||||||
}
|
}
|
||||||
}).join('');
|
}).join('');
|
||||||
|
|
||||||
text = text.replace(/<br><code><pre>/g, '<code><pre>').replace(/<\/code><\/pre><br>/g, '</code></pre>');
|
text = text
|
||||||
|
.replace(/ <code>/g, '<code>').replace(/<\/code> /g, '</code>')
|
||||||
|
.replace(/<br><code><pre>/g, '<code><pre>').replace(/<\/code><\/pre><br>/g, '</code></pre>');
|
||||||
|
|
||||||
if (me && me.data && me.data.nya) {
|
if (me && me.data && me.data.nya) {
|
||||||
text = nyaize(text);
|
text = nyaize(text);
|
||||||
|
|
Loading…
Reference in a new issue