mirror of
https://github.com/hexastack/hexabot
synced 2025-05-31 10:57:06 +00:00
fix: add recommended backslash
This commit is contained in:
parent
cdb39e7c90
commit
e0508b388e
@ -27,7 +27,7 @@ const templatePath: string = path.join(__dirname, '../config/template.ts');
|
||||
|
||||
// Check if a migration with the same name (excluding timestamp) already exists
|
||||
const migrationExists: boolean = fs.readdirSync(migrationsDir).some((file) => {
|
||||
const regex = new RegExp(`^[0-9]+-${_.escapeRegExp(arg)}\.ts$`);
|
||||
const regex = new RegExp(`^[0-9]+-${_.escapeRegExp(arg)}\\.ts$`);
|
||||
return regex.test(file);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user