configurator/lib/DomainValidator.cpp

5 lines
196 B
C++
Raw Normal View History

#include "DomainValidator.h"
DomainValidator::DomainValidator(QObject * parent):QRegularExpressionValidator(QRegularExpression("^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\\.)+[A-Za-z]{2,63}$"), parent) {
}