mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +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
|
@ -11,7 +11,7 @@ import type {Tag} from '@docusaurus/utils';
|
|||
import {JoiFrontMatter} from './JoiFrontMatter';
|
||||
|
||||
export const PluginIdSchema = Joi.string()
|
||||
.regex(/^[a-zA-Z0-9_-]+$/)
|
||||
.regex(/^[\w-]+$/)
|
||||
.message(
|
||||
'Illegal plugin ID value "{#value}": it should only contain alphanumerics, underscores, and dashes.',
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue