Skip to content

Commit d97b154

Browse files
committed
fix text truncate
1 parent b288c4f commit d97b154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WebRecon/scanners/base_scanner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def abort_scan(self, reason: str):
215215

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

221221

0 commit comments

Comments
 (0)