Freecodecamp: RegExp Restrict Possible Usernames challenge need stricker test

Created on 21 Jun 2019  路  2Comments  路  Source: freeCodeCamp/freeCodeCamp


Describe your problem and how to reproduce it:
There's no test for the first check:
1) The only numbers in the username have to be at the end. There can be zero or more of them at the end.

That way the RegEx /[a-z]{2,}/i pass in all tests when it shouldn't, because this regex match any username who has at least two letters.

Add a Link to the page with the problem:
Restrict Possible Usernames

Tell us about your browser and operating system:

  • Browser Name: Chrome
  • Browser Version: 75.0.3770.90 (Official Build) (64-bit)
  • Operating System: Ubuntu 18.04

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):

resolveshipping

Most helpful comment

Thanks for reporting this @minggas - this is fixed in beta. However the beta site is down right now so the only way verify that it's fixed is to run the site locally - which I have done.

Screen Shot 2019-06-21 at 11 08 28 AM

All 2 comments

Thanks for reporting this @minggas - this is fixed in beta. However the beta site is down right now so the only way verify that it's fixed is to run the site locally - which I have done.

Screen Shot 2019-06-21 at 11 08 28 AM

I can confirm that this issue is non-existent on the current master.
It will be updated as soon as the new version is live.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robwelan picture robwelan  路  3Comments

vaibsharma picture vaibsharma  路  3Comments

itsmikewest picture itsmikewest  路  3Comments

jurijuri picture jurijuri  路  3Comments

QuincyLarson picture QuincyLarson  路  3Comments