mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
replace newlines with space
This commit is contained in:
parent
699327266b
commit
102d895697
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ module.exports.timestamp = function(time, flag = "t"){
|
|||
}
|
||||
|
||||
module.exports.stringwrap = function(content = "", length, newlines = true){
|
||||
if(!newlines) content = content.replace(/\n/, '')
|
||||
if(!newlines) content = content.replace(/\n/, ' ')
|
||||
if(content.length > length) return content.substr(0, length) + '...';
|
||||
return content;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue