QR code lib added
ShadowSocks export ui stylesheet fixes ip:port regexp fixed dns settings reset bug fixed
This commit is contained in:
parent
54fca5bebc
commit
f9e1b2c6dc
10 changed files with 2469 additions and 199 deletions
|
|
@ -21,6 +21,8 @@ public:
|
|||
static QString getStringBetween(const QString& s, const QString& a, const QString& b);
|
||||
static bool checkIPFormat(const QString& ip);
|
||||
static QRegExp ipAddressRegExp() { return QRegExp("^((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])(\\.(?!$)|$)){4}$"); }
|
||||
static QRegExp ipAddressPortRegExp() { return QRegExp("^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}"
|
||||
"(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(\\:[0-9]{1,5}){0,1}$"); }
|
||||
};
|
||||
|
||||
#endif // UTILS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue