Skip to content

Commit cdc684f

Browse files
committed
More flexible include syntax
1 parent 958a28d commit cdc684f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/migration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export async function compileIncludes(
132132
content: string,
133133
processedFiles: ReadonlySet<string>,
134134
): Promise<string> {
135-
const regex = /^--!include[ \t]+(.*\.sql)[ \t]*$/gm;
135+
const regex = /^--![ \t]*include[ \t]+(.*\.sql)[ \t]*$/gm;
136136

137137
// Find all includes in this `content`
138138
const matches = [...content.matchAll(regex)];

0 commit comments

Comments
 (0)