This commit is contained in:
KamioRinn 2024-09-17 15:08:57 +08:00 committed by GitHub
parent 6202bb913a
commit 197b33e69b

View File

@ -186,6 +186,7 @@ def replace_positive_quantifier(match) -> str:
match_2: str = match_2 if match_2 else ""
quantifiers: str = match.group(3)
number: str = num2str(number)
number = "" if number == "" else number
result = f"{number}{match_2}{quantifiers}"
return result