Open antonkomarev opened 4 years ago
@antonkomarev working on it!
@antonkomarev issue is fixed by #22 . Kindly check
Validation works good. The next thing I could propose for the future - you could make check on input unfocus if value starting from https://github.com/*
. If so - make a preg_match, extract username and replace input value with username only. After then perform validation.
A lot of people pasting links to their social links accounts instead of writing only username. It leads to generating counter with link:
/ghpvc/?username=https://github.com/example-username
Instead of:/ghpvc/?username=example-username
The better way will cutting domain part of the social website and leave only username automatically.
After then validation could be performed. For GitHub username you could use shinnn GitHub username validator