mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-28 15:37:49 +02:00
refactor: install eslint-plugin-regexp (#6906)
* refactor: install eslint-plugin-regexp * simplify * simplify * fix
This commit is contained in:
parent
127183e70e
commit
3a4b9b4c30
23 changed files with 145 additions and 83 deletions
|
@ -88,7 +88,7 @@ export async function cliDocsVersionCommand(
|
|||
// Since we are going to create `version-${version}` folder, we need to make
|
||||
// sure it's a valid pathname.
|
||||
// eslint-disable-next-line no-control-regex
|
||||
if (/[<>:"|?*\x00-\x1F]/g.test(version)) {
|
||||
if (/[<>:"|?*\x00-\x1F]/.test(version)) {
|
||||
throw new Error(
|
||||
`${pluginIdLogPrefix}: invalid version tag specified! Please ensure its a valid pathname too. Try something like: 1.0.0.`,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue