diff --git a/lib/util/package-rules.js b/lib/util/package-rules.js index 981a2dfc54a6f295f1cf9c09465af1962dc7a47d..979526bed856407a96228031d85bfac676155a7d 100644 --- a/lib/util/package-rules.js +++ b/lib/util/package-rules.js @@ -17,6 +17,7 @@ function applyPackageRules(inputConfig) { depName, currentValue, fromVersion, + lockedVersion, updateType, isBump, sourceUrl, @@ -144,7 +145,7 @@ function applyPackageRules(inputConfig) { const { matches, isVersion } = versioning.get(versionScheme); const compareVersion = isVersion(currentValue) ? currentValue // it's a version so we can match against it - : fromVersion; // need to match against this fromVersion, if available + : lockedVersion || fromVersion; // need to match against this fromVersion, if available if (compareVersion) { const isMatch = matches(compareVersion, matchCurrentVersion); positiveMatch = positiveMatch || isMatch;