Skip to content

Commit

Permalink
fix isMarkdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Oct 17, 2024
1 parent 91b1a99 commit 3f22389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vite-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ export default function solidBaseVitePlugin(
}

export function isMarkdown(path: string) {
return path.match(/.(mdx|md)/);
return !!path.match(/\.(mdx|md)/gm);
}

0 comments on commit 3f22389

Please sign in to comment.