mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 07:30:23 +03:00
further tweak line splitting
This commit is contained in:
parent
9df1a0f42f
commit
28827de09c
@ -61,7 +61,7 @@ module.exports =
|
|||||||
[speech]
|
[speech]
|
||||||
else
|
else
|
||||||
{say,txt} = speech.lin
|
{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:
|
lin: {say, txt:
|
||||||
if s.slice -1 isnt " "
|
if s.slice -1 isnt " "
|
||||||
s
|
s
|
||||||
|
@ -69,7 +69,7 @@ module.exports = {
|
|||||||
url: message
|
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 {
|
return {
|
||||||
lin: {
|
lin: {
|
||||||
say: say,
|
say: say,
|
||||||
|
Loading…
Reference in New Issue
Block a user