Skip to content

Instantly share code, notes, and snippets.

@Saw-mon-and-Natalie
Created July 4, 2019 19:33
Show Gist options
  • Save Saw-mon-and-Natalie/5b15b3a6bbb7bfca4b7cc87aec07f513 to your computer and use it in GitHub Desktop.
Save Saw-mon-and-Natalie/5b15b3a6bbb7bfca4b7cc87aec07f513 to your computer and use it in GitHub Desktop.
Allowed Tumblr Blog Names
Tumblr.BlogNameHelper.validate_tumblelog_name(t) {
return !/^-|-$|[^\-a-z0-9]|tumblr/i.test(t);
}

Allowed Tumblr Blog Name

Tumblr blog name can only have

  • a-z or A-Z characters
  • 0-9 digits
  • - (dash) in the middle of the name

It can not have:

  • - (dash) at the start or end of the blog name
  • any variation of tumblr using upper or lower case letters anywhere in the name
Tumblr.BlogNameHelper.validate_tumblelog_name(t);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment