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

JS identifier related helpers #219

Open
lasjorg opened this issue Jul 10, 2024 · 0 comments
Open

JS identifier related helpers #219

lasjorg opened this issue Jul 10, 2024 · 0 comments

Comments

@lasjorg
Copy link

lasjorg commented Jul 10, 2024

Should we add some identifier related helpers?

It might be nice to have identifier matcher and validator helpers. Not sure how often they are needed.

E.g.

https://github.com/sindresorhus/identifier-regex

https://github.com/sindresorhus/is-identifier


BTW, I was looking at getFunctionParams and it is matching on \w+ which would include invalid identifiers. Not sure if it really matters, probably not.

getFunctionParams("function test(42) {}");
getFunctionParams("function test(case) {}");
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

No branches or pull requests

1 participant