Skip to content
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

Merged
merged 4 commits into from
Jun 24, 2024
Merged

remove parse_list_string #1495

merged 4 commits into from
Jun 24, 2024

Conversation

liquidsec
Copy link
Collaborator

@@ -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
Copy link
Collaborator

@TheTechromancer TheTechromancer Jun 24, 2024

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()

@@ -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 '<>:"/\\|?*)'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be validate_chars

Copy link

codecov bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92%. Comparing base (67849f3) to head (5f1abab).

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.
📢 Have feedback on the report? Share it here.

@liquidsec liquidsec added this to the BBOT 1.9.0 milestone Jun 24, 2024
@liquidsec liquidsec merged commit ba75bdb into dev Jun 24, 2024
8 checks passed
@liquidsec liquidsec deleted the remove-parse-liststring branch June 24, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants