Skip to content

Instantly share code, notes, and snippets.

@NeQuissimus
Created February 16, 2017 01:19
Show Gist options
  • Save NeQuissimus/eea60263071a368d94a7c9db0a10b322 to your computer and use it in GitHub Desktop.
Save NeQuissimus/eea60263071a368d94a7c9db0a10b322 to your computer and use it in GitHub Desktop.
/** As per [[https://github.com/apache/kafka/blob/0.10.1.1/core/src/main/scala/kafka/common/Topic.scala]] */
type TopicSpec = NonEmpty And MaxSize[W.`249`.T] And MatchesRegex[W.`"[a-zA-Z0-9\\\\.\\\\-_]+"`.T] And Not[Equal[W.`"."`.T]] And Not[Equal[W.`".."`.T]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment