mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-31 23:29:10 +00:00
fix: prevent mnemonic removal from removing escaped ampersands (#1110)
* fix: revert mnemonic removal logic * refactor: fix newer logic to keep '&&'
This commit is contained in:
committed by
GitHub
parent
f258578f7b
commit
1c5e0016cc
@@ -17,7 +17,7 @@ def remove_mnemonic_marker(label: str) -> str:
|
||||
if ch == "&":
|
||||
# escaped ampersand "&&"
|
||||
if i + 1 < len(label) and label[i + 1] == "&":
|
||||
result += "&"
|
||||
result += "&&"
|
||||
skip = True
|
||||
# otherwise skip this '&'
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user