Remove the hash/number sign at the line-start (#1345)
Currently the helper remove the first character of each line, this can lead to cases, where important characters are removed. For example if the locale is already set up. (hash is already removed) in that case the helper would remove the first character of the locale and lead to a broken attempt to set the locale later on. This change should avoid that and only remove the hash. Co-authored-by: Fabian Bornschein <2440175-fabiscafe@users.noreply.gitlab.com>
This commit is contained in:
parent
9194f6d859
commit
d2f58362c9
|
|
@ -20,7 +20,7 @@ def list_locales() -> List[str]:
|
|||
entries.reverse()
|
||||
|
||||
for entry in entries:
|
||||
text = entry[1:].strip()
|
||||
text = entry.replace('#', '').strip()
|
||||
if text == '':
|
||||
break
|
||||
locales.append(text)
|
||||
|
|
|
|||
Loading…
Reference in New Issue