aboutsummaryrefslogtreecommitdiff
path: root/modules/commands/outs.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-09 17:52:51 +0000
committerGravatar jesopo2019-02-09 17:52:51 +0000
commit90618e883b0e65f5ad02598a136685ad79b6754f (patch)
tree198c486b82efc528e7a4488da378a77e502f891f /modules/commands/outs.py
parentMove StdOut/StdErr specific consts to outs.py (commands) (diff)
Move REGEX_CUTOFF to outs.py (commands)
Diffstat (limited to 'modules/commands/outs.py')
-rw-r--r--modules/commands/outs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/commands/outs.py b/modules/commands/outs.py
index 935721ac..8e90f5e8 100644
--- a/modules/commands/outs.py
+++ b/modules/commands/outs.py
@@ -1,6 +1,9 @@
+import re
from src import utils
OUT_CUTOFF = 400
+REGEX_CUTOFF = re.compile(r"^.{1,%d}(?:\s|$)" % OUT_CUTOFF)
+
STR_MORE = "%s (more...)" % utils.consts.RESET
STR_CONTINUED = "(...continued) "