Skip to content

Commit

Permalink
fix(build): fixed vue canvas plugin wrongly processing script and sty…
Browse files Browse the repository at this point in the history
…le tags
  • Loading branch information
mtorromeo committed Nov 6, 2023
1 parent 09905d7 commit b229b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-plugins/vite-plugin-story-canvas-source/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type VueCanvasPluginOptions = {
/**
* Filter out which files to be included as vue markdown pages.
*
* @default /\.story.vue($|\?)/
* @default /\.story.vue$/
*/
include?: FilterPattern;

Expand All @@ -26,7 +26,7 @@ export type VueCanvasPluginOptions = {
exclude?: FilterPattern;
}

const DEFAULT_INCLUDE_RE = /\.story\.vue($|\?)/;
const DEFAULT_INCLUDE_RE = /\.story\.vue$/;

async function traverse(arr: Node[], callback: (el: Node) => Promise<Node>) {
for (let i = 0; i < arr.length; i++) {
Expand Down

0 comments on commit b229b77

Please sign in to comment.