vue-styleguidist icon indicating copy to clipboard operation
vue-styleguidist copied to clipboard

fix(docs): Wrong regular expression in documentation

Open jvxiao opened this issue 6 months ago • 4 comments

File path: package/vue-doc-cli/README.md

Description: A part of the description of getDestFile is :

default: (file, config) => path.resolve(config.outDir, file).replace(/\.\w+/$/, '.md')

the express .replace(/\.\w+/$/, '.md') is supposed to realce the filename extension from .vue, .jsx ... to .md, but it was wrong spelled, the right one is in follow content:

default: (file, config) => path.resolve(config.outDir, file).replace(/\.\w+$/, '.md')

jvxiao avatar Apr 17 '25 05:04 jvxiao