UNPKG

renovate

Version:

Automated dependency updates. Flexible so you don't need to be.

15 lines (14 loc) 514 B
import { matchRegexOrGlobList } from "../string-match.js"; import { Matcher } from "./base.js"; import { isUndefined } from "@sindresorhus/is"; //#region lib/util/package-rules/sourceurls.ts var SourceUrlsMatcher = class extends Matcher { matches({ sourceUrl }, { matchSourceUrls }) { if (isUndefined(matchSourceUrls)) return null; if (!sourceUrl) return false; return matchRegexOrGlobList(sourceUrl, matchSourceUrls); } }; //#endregion export { SourceUrlsMatcher }; //# sourceMappingURL=sourceurls.js.map