-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Optimize the usage of regular expressions #47
Labels
Comments
aldy505
added
enhancement
New feature or request
good first issue
Good for newcomers
hacktoberfest
labels
Oct 5, 2021
Hi @aldy505 |
@vijaykrishna536 yes go ahead |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some regular expressions that are currently on the
/src/language
directory are somewhat inefficient.Take this as an example:
flourite/src/languages/clojure.ts
Lines 4 to 7 in 32bc6b7
That pattern might be optimized to
/^\s*\(ns(\s+)(.*)(\))?$/
to minimize the steps needed to achieve the same result.I believe there are more patterns like that, that can be optimized.
The text was updated successfully, but these errors were encountered: