mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
[Client] Trim text
This commit is contained in:
parent
ef71cf483b
commit
0ec01baa3b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user