mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +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
|
||||
*/
|
||||
public isValidVersion(version: string): version is MigrationVersion {
|
||||
const regex = /^v?(\d+)\.(\d+)\.(\d+)$/;
|
||||
const regex = /^v(\d+)\.(\d+)\.(\d+)$/;
|
||||
return regex.test(version);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user