fix weird bugs with newlines
This commit is contained in:
parent
f7c948b4ac
commit
ef68abe802
1 changed files with 1 additions and 1 deletions
2
lib.js
2
lib.js
|
@ -10,7 +10,7 @@ function apiStat(res, next, message, success = false, redirect = '/') {
|
||||||
}
|
}
|
||||||
|
|
||||||
function splitUp(content) {
|
function splitUp(content) {
|
||||||
let out = content.split(/(\s)/g);
|
let out = content.split(/(\s+)/g);
|
||||||
|
|
||||||
for (let i in out) {
|
for (let i in out) {
|
||||||
let res = out[i];
|
let res = out[i];
|
||||||
|
|
Loading…
Reference in a new issue