autofill regex

This commit is contained in:
Akash Mozumdar 2020-03-29 20:55:25 -06:00
parent 86415fca10
commit 26960cf099

View File

@ -333,6 +333,7 @@ namespace
return; return;
} }
filter.setPattern(cjkCheckBox.isChecked() ? "[\\x{3000}-\\x{a000}]{4,}" : "[\\x{0020}-\\x{1000}]{4,}");
if (customSettings) if (customSettings)
{ {
QDialog dialog(This, Qt::WindowCloseButtonHint); QDialog dialog(This, Qt::WindowCloseButtonHint);
@ -388,7 +389,6 @@ namespace
else else
{ {
sp.length = 0; // use default sp.length = 0; // use default
filter.setPattern(cjkCheckBox.isChecked() ? "[\\x{3000}-\\x{a000}]{4,}" : "[\\x{0020}-\\x{1000}]{4,}");
} }
filter.optimize(); filter.optimize();