v1.0.23
This commit is contained in:
1 parent
e9a9f0ca25
commit
0bb10cabb9
42 files changed
+7147
-239
No files matched your search
@@ -499,7 +499,7 @@
|
||||
|
||||
// Hostname pattern (allows letters, numbers, hyphens, dots)
|
||||
// Must start with letter/number, can contain dots for subdomains
|
||||
const hostnamePattern = /^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?)*$/;
|
||||
const hostnamePattern = /^[a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?)*$/;
|
||||
return hostnamePattern.test(host);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user