diff options
Diffstat (limited to 'modules/commands.py')
| -rw-r--r-- | modules/commands.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/commands.py b/modules/commands.py index 8a811e2e..6985c869 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -1,3 +1,4 @@ +import re import Utils STR_MORE = "%s (more...)" % Utils.FONT_RESET @@ -5,6 +6,8 @@ STR_CONTINUED = "(...continued) " OUT_CUTOFF = 400 +REGEX_CUTOFF = re.compile("^.{1,%d}(?:\s|$)" % OUT_CUTOFF) + class Out(object): def __init__(self, module_name, target): self.module_name = module_name |
