Skip to content

Commit

Permalink
More flexible include syntax (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored Jan 23, 2024
2 parents 5b29ed6 + cdc684f commit f6ca151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export async function compileIncludes(
content: string,
processedFiles: ReadonlySet<string>,
): Promise<string> {
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)];
Expand Down

0 comments on commit f6ca151

Please sign in to comment.