diff --git a/packages/plugin-tools/src/index.ts b/packages/plugin-tools/src/index.ts index 652bfbb..f3d7b83 100644 --- a/packages/plugin-tools/src/index.ts +++ b/packages/plugin-tools/src/index.ts @@ -109,7 +109,7 @@ export const getTimestampPrefix = () => new Date().toISOString().replaceAll(/[-: */ export const sanitizeMigrationName = (name: string) => name - .replaceAll(/[\W/\\:|*?'"<>]+/g, '_') + .replaceAll(/[\W/\\:|*?'"<>_]+/g, '_') .trim() - .replace(/_$/, '') + .replace(/^_|_$/, '') .toLocaleLowerCase();