fix(learn): add test case to regex challenge (#40087)

existing test cases can be satisfied by /^[a-z][a-z]+$|^[a-z][a-z]*\d\d+$/i
pull/40144/head
Marc Antoni 2020-11-01 22:24:35 +09:00 committed by GitHub
parent 2d69fcb787
commit 1badd3c3a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ tests:
testString: assert(userCheck.test("Z97"));
- text: Your regex should not match <code>c57bT3</code>
testString: assert(!userCheck.test("c57bT3"));
- text: Your regex should match <code>AB1</code>
testString: assert(userCheck.test("AB1"));
```