Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Error: Invalid regular expression in vuepress-plugin-versioning #170

Open
wyattis opened this issue May 25, 2021 · 0 comments
Open

Comments

@wyattis
Copy link

wyattis commented May 25, 2021

The plugin appears to be trying to create a regular expression with the full path to a directory, but it fails on Windows for some reason.

SyntaxError: Invalid regular expression: /^/C:\Users\user\site\website\versioned_docs\/: \ at end of pattern
    at new RegExp (<anonymous>)
    at extendPageData (C:\Users\user\site\node_modules\vuepress-plugin-versioning\index.js:155:61)
    at C:\Users\user\site\node_modules\@vuepress\core\lib\node\Page.js:293:19
    at Array.map (<anonymous>)
    at Page.enhance (C:\Users\user\site\node_modules\@vuepress\core\lib\node\Page.js:290:17)
    at Page.process (C:\Users\user\site\node_modules\@vuepress\core\lib\node\Page.js:148:16)
    at async App.addPage (C:\Users\user\site\node_modules\@vuepress\core\lib\node\App.js:354:5)
    at async C:\Users\user\site\node_modules\@vuepress\core\lib\node\App.js:120:9
    at async Promise.all (index 80)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant