diff options
| author | 2019-02-09 17:52:51 +0000 | |
|---|---|---|
| committer | 2019-02-09 17:52:51 +0000 | |
| commit | 90618e883b0e65f5ad02598a136685ad79b6754f (patch) | |
| tree | 198c486b82efc528e7a4488da378a77e502f891f /modules/commands/outs.py | |
| parent | Move 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.py | 3 |
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) " |
