From 9919234dc272eb72ec4ad16abd48f607007e28bf Mon Sep 17 00:00:00 2001 From: Aresn Date: Thu, 28 Nov 2024 14:08:00 +0800 Subject: [PATCH] Thu Nov 28 14:08:00 CST 2024 inscode --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2d7e683..5fd1d72 100644 --- a/index.js +++ b/index.js @@ -1 +1,7 @@ -console.log("欢迎来到 InsCode"); \ No newline at end of file +function aa (str) { + const englishRegex = /^[a-zA-Z]+$/; + return englishRegex.test(str); +} + +const a = aa('this is a good idea') +console.log(a); \ No newline at end of file -- GitLab