To create a more robust regular expression that supports the various patterns of importing React, you can account for different variations in the import statements
Additional context
If you need the pattern to also catch other specific cases or be more flexible, you can adjust the non-capturing groups or add additional ones. However, the provided regex should cover the most common React import patterns effectively.
What is the purpose of this pull request?
[ X ] Bug fix
[ ] New Feature
[ ] Documentation update
[ X ] Other
Before submitting the PR, please make sure you do the following
Description
To create a more robust regular expression that supports the various patterns of importing React, you can account for different variations in the import statements
Additional context
If you need the pattern to also catch other specific cases or be more flexible, you can adjust the non-capturing groups or add additional ones. However, the provided regex should cover the most common React import patterns effectively.
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).