Skip to content

Commit 5efc6c5

Browse files
committed
Fix aliased_package_name check
The package _name_ only contains `@npm:` if it's actually aliased, and looks like `my-fetch-factory@npm:fetch-factory`, the _requirement_ will have an additional `@npm:<version>` in yarn berry, but this is not present in the package name
1 parent d03905b commit 5efc6c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm_and_yarn/lib/dependabot/npm_and_yarn/file_parser.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def git_url_with_semver?(requirement)
155155
end
156156

157157
def aliased_package_name?(name)
158-
name.match?(/@npm:(.+@(?!npm))/)
158+
name.include?("@npm:")
159159
end
160160

161161
def workspace_package_names

0 commit comments

Comments
 (0)