further tweak line splitting

This commit is contained in:
Anton Dyudin 2015-10-28 13:28:01 -07:00
parent 9df1a0f42f
commit 28827de09c
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ module.exports =
[speech]
else
{say,txt} = speech.lin
txt.match(/(.{0,64}$|.{0,64} |.{64}|.+$)/g).map (s)->
txt.match(/(.{1,64}$|.{0,64} |.{64}|.+$)/g).map (s)->
lin: {say, txt:
if s.slice -1 isnt " "
s

View File

@ -69,7 +69,7 @@ module.exports = {
url: message
};
}
speeches = !(((ref = speech.lin) != null ? ref.txt.length : void 0) > 64) ? [speech] : ((ref1 = speech.lin, say = ref1.say, txt = ref1.txt, ref1), txt.match(/(.{0,64}$|.{0,64} |.{64}|.+$)/g).map(function(s) {
speeches = !(((ref = speech.lin) != null ? ref.txt.length : void 0) > 64) ? [speech] : ((ref1 = speech.lin, say = ref1.say, txt = ref1.txt, ref1), txt.match(/(.{1,64}$|.{0,64} |.{64}|.+$)/g).map(function(s) {
return {
lin: {
say: say,