You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constRFC_1123_LABEL_ERROR_MSG:&str = "a lowercase RFC 1123 label must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character";
constRFC_1123_LABEL_ERROR_MSG:&str = "a RFC 1123 label must consist of alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character";
24
22
25
23
/// This is a subdomain's max length in DNS (RFC 1123)
constRFC_1123_SUBDOMAIN_ERROR_MSG:&str = "a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character";
constDOMAIN_ERROR_MSG:&str = "a domain must consist of lower case alphanumeric characters, '-' or '.', and must start with an alphanumeric character and end with an alphanumeric character or '.'";
31
+
constDOMAIN_ERROR_MSG:&str = "a domain must consist of alphanumeric characters, '-' or '.', and must start with an alphanumeric character and end with an alphanumeric character or '.'";
35
32
33
+
// FIXME: According to https://www.rfc-editor.org/rfc/rfc1035#section-2.3.1 domain names must start with a letter
constRFC_1035_LABEL_ERROR_MSG:&str = "a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character";
/// name_is_dns_label checks whether the passed in name is a valid DNS label
287
252
/// according to RFC 1035.
288
253
///
@@ -312,14 +277,28 @@ mod tests {
312
277
313
278
usesuper::*;
314
279
280
+
constRFC_1123_SUBDOMAIN_ERROR_MSG:&str = "a RFC 1123 subdomain must consist of alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character";
0 commit comments