Skip to content

Commit

Permalink
Fix #1350
Browse files Browse the repository at this point in the history
  • Loading branch information
shelld3v authored Jan 3, 2024
1 parent b2ccd6d commit 7c91220
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions lib/core/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,23 @@ def parse_options():
opt.skip_on_status = _parse_status_codes(opt.skip_on_status)
opt.prefixes = tuple(strip_and_uniquify(opt.prefixes.split(",")))
opt.suffixes = tuple(strip_and_uniquify(opt.suffixes.split(",")))
opt.subdirs = strip_and_uniquify(
[
subdir.lstrip("/") + ("" if not subdir or subdir.endswith("/") else "/")
for subdir in opt.subdirs.split(",")
]
opt.subdirs = map(
lambda subdir: subdir.lstrip("/"),
strip_and_uniquify(
[
subdir if subdir.endswith("/") else subdir + "/"
for subdir in opt.subdirs.split(",")
]
),
)
opt.exclude_subdirs = strip_and_uniquify(
[
subdir.lstrip("/") + ("" if not subdir or subdir.endswith("/") else "/")
for subdir in opt.exclude_subdirs.split(",")
]
opt.exclude_subdirs = map(
lambda subdir: subdir.lstrip("/"),
strip_and_uniquify(
[
subdir if subdir.endswith("/") else subdir + "/"
for subdir in opt.exclude_subdirs.split(",")
]
),
)
opt.exclude_sizes = {size.strip().upper() for size in opt.exclude_sizes.split(",")}

Expand Down

0 comments on commit 7c91220

Please sign in to comment.