提交 1b65d1d8 编写于 作者: View Design's avatar View Design

Thu Nov 28 14:17:00 CST 2024 inscode

上级 9919234d
function aa (str) { function aa (str) {
const englishRegex = /^[a-zA-Z]+$/; const regex = /^[a-zA-Z\s.,!?'"*_\[\]()#\-,。!?:《》()【】“”‘’]*$/;
return englishRegex.test(str); return regex.test(str);
} }
const a = aa('this is a good idea') const a = aa('this is a, good idea.')
console.log(a); console.log(a);
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册