configurator/lib/DomainValidator.cpp
2024-09-03 21:52:55 +02:00

5 lines
196 B
C++

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