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:
Clement Demonchy 2022-02-11 04:57:58 +01:00 committed by GitHub
parent 10a5f71154
commit 1cd4757828
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View file

@ -69,6 +69,7 @@ describe('validation schemas', () => {
testOK('docs');
testOK('default');
testOK('plugin-id_with-simple-special-chars');
testOK('doc1');
testFail('/docs');
testFail('docs/');