Skip to content

fix multiple @ in yarn list - #102

Open
T-Roc wants to merge 2 commits into
q-nick:masterfrom
T-Roc:fix/yarn_list
Open

fix multiple @ in yarn list #102
T-Roc wants to merge 2 commits into
q-nick:masterfrom
T-Roc:fix/yarn_list

Conversation

@T-Roc

@T-Roc T-Roc commented May 17, 2023

Copy link
Copy Markdown

While using Yarn, I discovered a code defect:

x.name.split('@')[0] fails to properly extract the package name from a string like "@babel/generator@^7.21.5", resulting in an empty string instead of the expected package name and causing an error.

Therefore, I have submitted a fix for this issue.

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.

1 participant