mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Merge pull request #2195 from nats-io/stream_name_validate
Extend stream/consumer name validation to include more characters
This commit is contained in:
@@ -1911,7 +1911,7 @@ func isValidName(name string) bool {
|
||||
if name == "" {
|
||||
return false
|
||||
}
|
||||
return !strings.ContainsAny(name, ".*>")
|
||||
return !strings.ContainsAny(name, " \t\r\n\f.*>")
|
||||
}
|
||||
|
||||
// CanonicalName will replace all token separators '.' with '_'.
|
||||
|
||||
Reference in New Issue
Block a user