Skip to content
Snippets Groups Projects
Commit 7c68d576 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: correctly filter pinned versions

parent a8786a17
Branches
Tags 12.39.3
No related merge requests found
...@@ -31,7 +31,7 @@ async function getDependency(repo, options = {}) { ...@@ -31,7 +31,7 @@ async function getDependency(repo, options = {}) {
if (!versions) { if (!versions) {
return null; return null;
} }
versions = versions.filter(isPinnedVersion); versions = versions.filter(version => isPinnedVersion(version));
if (clean) { if (clean) {
versions = versions.map(version => version.replace(/^v/, '')); versions = versions.map(version => version.replace(/^v/, ''));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment