Skip to content

Commit b288c4f

Browse files
committed
return text
1 parent d11ca01 commit b288c4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebRecon/scanners/base_scanner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ def abort_scan(self, reason: str):
215215

216216
@staticmethod
217217
def truncate_str(text: str) -> str:
218-
if len(text) > OutputDefaultParams.StrTruncLimit:
219-
return f"...{text[:-OutputDefaultParams.StrTruncLimit-3]}"
218+
return f"...{text[:-OutputDefaultParams.StrTruncLimit-3]}" if \
219+
len(text) > OutputDefaultParams.StrTruncLimit else text
220220

221221

222222
class Scanner(ScanManager):

0 commit comments

Comments
 (0)