Skip to content

Commit

Permalink
fix(cli): 优化compileRoutes正则
Browse files Browse the repository at this point in the history
affects: @varlet/cli
  • Loading branch information
齐皓 authored and 齐皓 committed Mar 1, 2021
1 parent 2a500dc commit b9223c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/varlet-cli/src/compiler/compileRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { pathExistsSync, readdir, readdirSync, writeFile } from 'fs-extra'
import { resolve } from 'path'
import { isMD } from '../shared/fsUtils'

const EXAMPLE_COMPONENT_NAME_RE = /\/([-\w]+)\/example\//
const EXAMPLE_COMPONENT_NAME_RE = /\/([-\w]+)\/example\/index.vue/
const COMPONENT_DOCS_RE = /\/([-\w]+)\/docs\/([-\w]+)\.md/
const ROOT_DOCS_RE = /\/docs\/([-\w]+)\.([-\w]+)\.md/

Expand Down

0 comments on commit b9223c2

Please sign in to comment.