kike: fix grammar in hostname validation

This has an entry in RFC 2812 errata, although it's held for document
update.  We can afford the strictness.
This commit is contained in:
Přemysl Eric Janouch 2018-08-01 09:07:38 +02:00
parent 54d3406175
commit 3c47e5b354
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 1 deletions

3
kike.c
View File

@ -194,7 +194,8 @@ irc_validate_to_str (enum validation_result result)
} }
// Anything to keep it as short as possible // Anything to keep it as short as possible
#define SN "[0-9A-Za-z][-0-9A-Za-z]*[0-9A-Za-z]*" // "shortname" from RFC 2812 doesn't work how its author thought it would.
#define SN "[0-9A-Za-z](-*[0-9A-Za-z])*"
#define N4 "[0-9]{1,3}" #define N4 "[0-9]{1,3}"
#define N6 "[0-9ABCDEFabcdef]{1,}" #define N6 "[0-9ABCDEFabcdef]{1,}"