fix: minor regex fix

This commit is contained in:
Mohamed Marrouchi 2025-01-05 22:29:04 +01:00
parent 51d7650d08
commit 20439fab92

View File

@ -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);
}
}