mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-24 05:28:01 +02:00
feat: allow numbers in plugin ID (#6656)
* fix example for id that didn't respect regex example for id don't work with version 2.0.0-beta.15: ValidationError: "id" with value "docs1" fails to match the required pattern: /^[a-zA-Z_-]+$/ Error: Process completed with exit code 1. * properly fix Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
parent
10a5f71154
commit
1cd4757828
3 changed files with 9 additions and 5 deletions
|
@ -69,6 +69,7 @@ describe('validation schemas', () => {
|
|||
testOK('docs');
|
||||
testOK('default');
|
||||
testOK('plugin-id_with-simple-special-chars');
|
||||
testOK('doc1');
|
||||
|
||||
testFail('/docs');
|
||||
testFail('docs/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue