Skip to content

Commit

Permalink
Merge pull request #108 from v0q1n8/issue-bug030
Browse files Browse the repository at this point in the history
SOLVED
  • Loading branch information
edoardocolella authored Dec 14, 2023
2 parents 637cd09 + 111c5b6 commit 701f594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/BUG/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def extract_digits(s: str) -> str:
"""
BUG030: extract_digits should return a string containing only the digits from the input string, not convert it to int.
"""
result = int(s)
result = ''.join(char for char in s if char.isdigit())
return result


Expand Down

0 comments on commit 701f594

Please sign in to comment.