Skip to content

Commit

Permalink
remove redundant regex chars
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Jan 18, 2024
1 parent da8e8bb commit 555cd25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machineid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import re

def __sanitize__(id: str) -> str:
return re.sub(r'[\x00-\x1f\x7f-\x9f\r\n\t\s]', '', id) \
return re.sub(r'[\x00-\x1f\x7f-\x9f\s]', '', id) \
.strip()

def __exec__(cmd: str) -> str:
Expand Down

0 comments on commit 555cd25

Please sign in to comment.