This commit is contained in:
Kovid Goyal 2023-04-11 17:58:26 +05:30
commit 75584b8caf
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -158,9 +158,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
return error_dialog(self.gui, _('Grouped search terms'),
_('The search term name cannot be blank'),
show=True)
if ' ' in name:
if ' ' in name or '.' in name:
return error_dialog(self.gui, _('Invalid grouped search name'),
_('The grouped search term name cannot contain spaces'), show=True)
_('The grouped search term name cannot contain spaces or periods'), show=True)
if idx != 0:
orig_name = str(self.gst_names.itemData(idx) or '')
else: