Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/smartcard_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def simulate_keypress(text, use_linux_uinput, osx_control_modifier=False):
Paste the given text into the current application.
"""
without_special_characters = (
text.replace("\n", "").replace(" ", "").replace(":", "").replace("\u00A7", "")
text.replace("\n", "").replace(" ", "").replace(":", "").replace("\u00a7", "")
)
if without_special_characters and not without_special_characters.isalnum():
raise Exception(
Expand Down Expand Up @@ -143,7 +143,7 @@ def main():
sys.exit("ERROR: --test-permissions is only supported on macOS")
try:
simulate_keypress(
"\u00A7", use_linux_uinput=False, osx_control_modifier=True
"\u00a7", use_linux_uinput=False, osx_control_modifier=True
)
except Exception as err:
sys.exit(f"ERROR: {err}")
Expand Down