Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaltyagi committed Oct 27, 2024
1 parent a490535 commit 390b987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsiqcppstyle_exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def recursive_star_replace(string):
msg = f"Except the beginning, the pattern (**) must be sandwitched between directory separator ({os.sep})"
raise ValueError(msg)
post_star = post_star.removeprefix(os.sep) # ** = recursive, including no subdirectories
pre_star = recursive_star_replace(remainder) if not top_level else ''
pre_star = recursive_star_replace(remainder) if not top_level else ""
string = rf"{pre_star}(.+{os.sep})?{post_star}"
return string

Expand Down

0 comments on commit 390b987

Please sign in to comment.