mirror of
https://github.com/urbit/shrub.git
synced 2024-12-15 04:22:48 +03:00
further tweak line splitting
This commit is contained in:
parent
9df1a0f42f
commit
28827de09c
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user