Skip to content

Commit cd768c5

Browse files
brought back multiple space detection in the mc expression, as certain root entries would require having the prefix included but we don't want it to be able to be crashed. Effectively reverts 647e3a0
1 parent bde3748 commit cd768c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/synthDrivers/ibmeci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def unicode(s): return s
5151
# Does not occur in normal use, however if a dictionary entry contains the Mc prefix, and NVDA splits it up, the synth will crash.
5252
# Also fixes ViaVoice, as the parser is more strict there and doesn't like spaces in Mc names.
5353
# this should be considered an english fix
54-
re.compile(r"\b(Mc) ([A-Z][a-z]+)"): r"\1\2"
54+
re.compile(r"\b(Mc)\s+([A-Z][a-z]+)"): r"\1\2"
5555
}
5656

5757
french_fixes = { re.compile(r'([a-zA-Z0-9_]+)@(\w+)'): r'\1 arobase \2' }

0 commit comments

Comments
 (0)