paritytech / polkassembly

Polkassembly now has a new home:
https://github.com/Premiurly/polkassembly
Apache License 2.0
30 stars 37 forks source link

Better Username regexp #1122

Closed niklabh closed 3 years ago

niklabh commented 3 years ago

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions

niklabh commented 3 years ago

https://eloquentjavascript.net/09_regexp.html

niklabh commented 3 years ago

To indicate that a pattern should occur a precise number of times, use braces. Putting {4} after an element, for example, requires it to occur exactly four times. It is also possible to specify a range this way: {2,4} means the element must occur at least twice and at most four times.