diff --git a/senml.go b/senml.go index bee0a6a..f972b75 100644 --- a/senml.go +++ b/senml.go @@ -254,10 +254,10 @@ func validateName(name string) error { if (l == '-') || (l == ':') || (l == '.') || (l == '/') || (l == '_') { return ErrBadChar } - for _, l := range name { - if (l < 'a' || l > 'z') && (l < 'A' || l > 'Z') && (l < '0' || l > '9') && (l != '-') && (l != ':') && (l != '.') && (l != '/') && (l != '_') { - return ErrBadChar - } - } +// for _, l := range name { +// if (l < 'a' || l > 'z') && (l < 'A' || l > 'Z') && (l < '0' || l > '9') && (l != '-') && (l != ':') && (l != '.') && (l != '/') && (l != '_') { +// return ErrBadChar +// } +// } return nil }