UNPKG

github-username-regex-js

Version:

A regular expression that only matches a valid GitHub or GitHub EMU username

4 lines (2 loc) 135 B
var module$1 = /^(?:[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}|[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*(_[a-zA-Z0-9]+))$/i; module.exports = module$1;