1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00

fix: more permissive protocol alphabet

This commit is contained in:
hellerve 2017-02-23 12:10:39 +01:00
parent 1fd1cb6a1a
commit 160f662bb7

View file

@ -47,7 +47,7 @@ func ValidateLengthAndCharset(value string, maxLength int, alphabet string) (str
}
func ValidateProtocolParam(value string) (string, error) {
return ValidateLengthAndCharset(value, 80, "ID_AS:.abcdef1234567890")
return ValidateLengthAndCharset(value, 80, "ABCDEFGHIJKLMNOPQRSTUVWXYZ_:.abcdefghijklmnopqrstuvwxyz1234567890")
}
func ValidatePrefixParam(value string) (string, error) {