mirror of
https://github.com/hexastack/hexabot
synced 2025-05-08 22:59:39 +00:00
fix: minor regex fix
This commit is contained in:
parent
51d7650d08
commit
20439fab92
@ -74,7 +74,7 @@ export class MigrationCommand extends CommandRunner {
|
|||||||
* @returns True, if the migration version name is valid
|
* @returns True, if the migration version name is valid
|
||||||
*/
|
*/
|
||||||
public isValidVersion(version: string): version is MigrationVersion {
|
public isValidVersion(version: string): version is MigrationVersion {
|
||||||
const regex = /^v?(\d+)\.(\d+)\.(\d+)$/;
|
const regex = /^v(\d+)\.(\d+)\.(\d+)$/;
|
||||||
return regex.test(version);
|
return regex.test(version);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user