fix _tidy_name() comment

This commit is contained in:
Damien Elmes 2020-02-28 17:14:47 +10:00
parent 4781ed4d70
commit a954dc1066

View file

@ -511,7 +511,7 @@ if isWin:
self._terminate_flag = False self._terminate_flag = False
def _tidy_name(self, name: str) -> str: def _tidy_name(self, name: str) -> str:
"eg. Microsoft Haruka Desktop -> Microsoft-Haruka." "eg. Microsoft Haruka Desktop -> Microsoft_Haruka."
return re.sub(r"^Microsoft (.+) Desktop$", "Microsoft_\\1", name).replace( return re.sub(r"^Microsoft (.+) Desktop$", "Microsoft_\\1", name).replace(
" ", "_" " ", "_"
) )