Skip to content

Commit

Permalink
fix error windows regex
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Mar 23, 2024
1 parent abea824 commit f9e9047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ofscraper/classes/placeholder.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def _addcount(self, ele, out):
return out
out = re.sub(" $", "", out)
# insert count
if re.search(r"\.[^.]+$", out):
if re.search(r"\.(?:[a-zA-Z0-9]+)$", out):
out = re.sub(r"(\.(?!\.))", f"_{ele.count}.", out)
else:
out = f"{out}_{ele.count}"
Expand Down

0 comments on commit f9e9047

Please sign in to comment.