1.1.0 • Published 3 years ago

@expo/account-names v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

@expo/account-names

A small library that validates Expo account names.

The current rules are:

  • At least three characters
  • Fewer than 128 characters
  • Contains only Latin letters, numbers, periods, underscores, and hyphens
  • Starts with a letter or number and ends with a letter or number (no trailing punctuation)
  • No consecutive punctuation characters

These rules have changed over time. Thus, there exist valid accounts with now-invalid names, and name validation needs to run only when choosing a name, not when loading an account or logging in.