Regexp validator

This commit is contained in:
Aditya Kulkarni
2018-11-22 08:31:35 -08:00
parent 0871eb38e6
commit 533dead402
4 changed files with 10 additions and 0 deletions

View File

@@ -204,3 +204,4 @@ bool Settings::isValidAddress(QString addr) {
ztsexp.exactMatch(addr) || zsexp.exactMatch(addr);
}
const QString Settings::labelRegExp("[a-zA-Z0-9\\-_]{0,40}");