github-username-regex icon indicating copy to clipboard operation
github-username-regex copied to clipboard

A regular expression that only matches a currently valid Github username

Results 3 github-username-regex issues
Sort by recently updated
recently updated
newest added

Quite surprisingly a trailing dash is allowed on GitHub... I'm not sure if this is a new thing or perhaps it's legacy and they no longer support it, but there...

By switching to a negated look-ahead assertion, the new `RegExp` can easily detect double hyphens while also allowing a single hyphen at the end of a username. We don't lose...

https://docs.github.com/en/enterprise-cloud@latest/admin/managing-iam/iam-configuration-reference/username-considerations-for-external-authentication#about-username-normalization GH still has no dedicated doc page for user-names, but it's better than nothing. BTW, it's worth mentioning that user-names share the same name-space as endpoints, and therefore any...