限制可能的用户名;这是哪里出问题了

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


let username = "JackOfAllTrades";
let userCheck = /[^\d]\w/gi; // 修改这一行
let result = userCheck.test(username);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36.

Challenge: 限制可能的用户名

Link to the challenge:

感觉你的代码跟题目一点都对不上。首先 \d 是查找数字字符,开头就不对啊。

“/^a-z$/i”