From 28827de09c8e8a480f8b48b7fd31379c3c6a616e Mon Sep 17 00:00:00 2001 From: Anton Dyudin Date: Wed, 28 Oct 2015 13:28:01 -0700 Subject: [PATCH] further tweak line splitting --- pub/talk/src/js/actions/MessageActions.coffee | 2 +- pub/talk/src/js/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pub/talk/src/js/actions/MessageActions.coffee b/pub/talk/src/js/actions/MessageActions.coffee index af4e0f9d57..b849e78ccb 100644 --- a/pub/talk/src/js/actions/MessageActions.coffee +++ b/pub/talk/src/js/actions/MessageActions.coffee @@ -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 diff --git a/pub/talk/src/js/main.js b/pub/talk/src/js/main.js index 32f4b18d6a..143ea0b609 100644 --- a/pub/talk/src/js/main.js +++ b/pub/talk/src/js/main.js @@ -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,