From cdc684fa2728ca5dd73476c817da51ed1036fdb2 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Tue, 23 Jan 2024 14:45:12 +0000 Subject: [PATCH] More flexible include syntax --- src/migration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migration.ts b/src/migration.ts index 6d5a26d..86ad7e6 100644 --- a/src/migration.ts +++ b/src/migration.ts @@ -132,7 +132,7 @@ export async function compileIncludes( content: string, processedFiles: ReadonlySet, ): Promise { - const regex = /^--!include[ \t]+(.*\.sql)[ \t]*$/gm; + const regex = /^--![ \t]*include[ \t]+(.*\.sql)[ \t]*$/gm; // Find all includes in this `content` const matches = [...content.matchAll(regex)];