1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 05:38:55 +09:00

[Client] Trim text

This commit is contained in:
syuilo 2017-03-01 14:22:29 +09:00
parent 425b3cffdc
commit 03bab95a1f

View File

@ -37,7 +37,9 @@ module.exports = (tokens, shouldBreak) => {
}
}).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) {
text = nyaize(text);