mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-27 11:01:17 +00:00
Allow saving empty syntax highlight language.
This commit is contained in:
parent
c3ed5224c2
commit
46157c99c4
@ -252,7 +252,7 @@ void EditCodeLanguageBox(
|
||||
|
||||
const auto callback = [=] {
|
||||
const auto name = field->getLastText().trimmed();
|
||||
const auto check = QRegularExpression("^[a-zA-Z0-9\\+\\-]+$");
|
||||
const auto check = QRegularExpression("^[a-zA-Z0-9\\+\\-]*$");
|
||||
if (check.match(name).hasMatch()) {
|
||||
auto weak = Ui::MakeWeak(box);
|
||||
save(name);
|
||||
|
Loading…
Reference in New Issue
Block a user