-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove parse_list_string #1495
remove parse_list_string #1495
Conversation
bbot/modules/ffuf_shortnames.py
Outdated
@@ -3,7 +3,7 @@ | |||
import string | |||
|
|||
from bbot.modules.deadly.ffuf import ffuf | |||
from bbot.core.helpers.misc import parse_list_string | |||
from bbot.core.helpers.misc import chain_lists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no need to import here; you can call it directly with self.helpers.chain_lists()
bbot/core/helpers/misc.py
Outdated
@@ -1202,10 +1209,15 @@ def chain_lists(l, try_files=False, msg=None, remove_blank=True): | |||
try_files (bool, optional): Whether to try to open entries as files. Defaults to False. | |||
msg (str, optional): An optional message to log when reading from a file. Defaults to None. | |||
remove_blank (bool, optional): Whether to remove blank entries from the list. Defaults to True. | |||
validate (bool, optional): Whether to perform validation for undesirable characters. Defaults to False. | |||
validate (str, optional): When performing validation, what additional set of characters to block (blocks non-printable ascii automatically). Defaults to '<>:"/\\|?*)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be validate_chars
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #1495 +/- ##
=====================================
+ Coverage 92% 92% +1%
=====================================
Files 327 327
Lines 21109 21105 -4
=====================================
+ Hits 19364 19368 +4
+ Misses 1745 1737 -8 ☔ View full report in Codecov by Sentry. |
#1485