-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
fix: strictly check dependencies import judgment using regular expressions #1146
fix: strictly check dependencies import judgment using regular expressions #1146
Conversation
768fb67
to
9f349c4
Compare
implementation.includes(e.alias || e.name), | ||
); | ||
const toAdds = exports.filter((e) => { | ||
const petternValues = [e.alias, e.name].filter((p) => p?.length).join('|'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PatternValues not PetternValues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@melloware
Thank you for review.
I interpreted the name of the variable to be inappropriate. Do you think this is searchWords
in the sense of the words you want to search for in a regular expression?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes searchWords would be a good name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9f349c4
to
5d01571
Compare
Status
READY
Description
fix #1145
I achieved this by using regular expressions to determine.
Related PRs
none
Todos
Steps to Test or Reproduce
orval