mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix(versioning): check for null version at regex (#4897)
This commit is contained in:
parent
31c1220640
commit
5dc990cfce
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ export class RegExpVersioningApi extends GenericVersioningApi<RegExpVersion> {
|
|||
|
||||
// convenience method for passing a string into a Version given current config.
|
||||
protected _parse(version: string): RegExpVersion | null {
|
||||
const match = version.match(this._config);
|
||||
const match = version ? version.match(this._config) : null;
|
||||
if (match === null) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue