Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor isOkVarChar function for simplicity and efficiency #4

Merged
merged 1 commit into from
Dec 31, 2023

Conversation

mic1on
Copy link
Contributor

@mic1on mic1on commented Dec 31, 2023

function isOkVarChar(c) {
    return (/^[a-zA-Z0-9]$/).test(c);
}

通过正则检查单个字符是否为正确的字符。

@CC11001100 CC11001100 self-requested a review December 31, 2023 16:23
@CC11001100
Copy link
Member

感谢大佬! LGTM!

@CC11001100 CC11001100 merged commit cce2245 into JSREI:main Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants