Skip to content

Commit 7631df0

Browse files
Ltrlgkoistya
authored andcommitted
Match only down as separator (#32)
1 parent 7ee1f26 commit 7631df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class Database {
161161
if (err) {
162162
reject(err);
163163
} else {
164-
const [up, down] = data.split(/^--\s+?down/mi);
164+
const [up, down] = data.split(/^--\s+?down\b/mi);
165165
if (!down) {
166166
const message = `The ${migration.filename} file does not contain '-- Down' separator.`;
167167
reject(new Error(message));

0 commit comments

Comments
 (0)