authPrompt: Also replace full-width colon
It is used instead of the regular colon in some locales, for example Chinese. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5716 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2598>
This commit is contained in:
parent
0c16e09002
commit
096ef1fa9b
@ -309,7 +309,7 @@ var AuthPrompt = GObject.registerClass({
|
||||
if (question === 'Password:' || question === 'Password: ')
|
||||
this.setQuestion(_('Password'));
|
||||
else
|
||||
this.setQuestion(question.replace(/: *$/, '').trim());
|
||||
this.setQuestion(question.replace(/[::] *$/, '').trim());
|
||||
|
||||
this.updateSensitivity(true);
|
||||
this.emit('prompted');
|
||||
|
Loading…
x
Reference in New Issue
Block a user