mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Allow saving empty syntax highlight language.
This commit is contained in:
parent
c3ed5224c2
commit
46157c99c4
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ void EditCodeLanguageBox(
|
||||||
|
|
||||||
const auto callback = [=] {
|
const auto callback = [=] {
|
||||||
const auto name = field->getLastText().trimmed();
|
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()) {
|
if (check.match(name).hasMatch()) {
|
||||||
auto weak = Ui::MakeWeak(box);
|
auto weak = Ui::MakeWeak(box);
|
||||||
save(name);
|
save(name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue