fix publisher name validation
This commit is contained in:
parent
cc74f631cd
commit
b55465eb89
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ export function validatePublisher(publisher: string): void {
|
|||
throw new Error(`Missing publisher name`);
|
||||
}
|
||||
|
||||
if (!/^[a-z0-9\-]+$/i.test(publisher)) {
|
||||
if (!/^[a-z0-9][a-z0-9\-]*$/i.test(publisher)) {
|
||||
throw new Error(`Invalid publisher '${ publisher }'`);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue