Skip to content

Commit

Permalink
fix: api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored and renovate[bot] committed Mar 5, 2024
1 parent c7e78b8 commit 19598d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/builds.ts
Expand Up @@ -5,7 +5,7 @@ import {
} from 'renovate/dist/modules/datasource';
import { get as getVersioning } from 'renovate/dist/modules/versioning';
import { add as addHostRule } from 'renovate/dist/util/host-rules';
import { configRegexPredicate } from 'renovate/dist/util/string-match';
import { getRegexPredicate } from 'renovate/dist/util/string-match';
import * as semver from 'semver';
import log from './logger';
import * as renovate from './renovate';
Expand Down Expand Up @@ -97,7 +97,7 @@ export async function getBuildList({
}

if (is.string(allowedVersions)) {
const isAllowedPred = configRegexPredicate(allowedVersions);
const isAllowedPred = getRegexPredicate(allowedVersions);
if (isAllowedPred) {
allVersions = allVersions.filter((version) => isAllowedPred(version));
} else if (ver.isValid(allowedVersions)) {
Expand Down

0 comments on commit 19598d6

Please sign in to comment.