Skip to content

Commit

Permalink
fix: validation pattern for dependencies field (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
sventruschel authored Nov 16, 2022
1 parent 40c36f8 commit 304ffb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validations/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const schema = (validStyleTypes: string[]): ObjectSchema => {
Joi.object({
label: Joi.string().required(),
package: Joi.string()
.pattern(/^[a-z]+:[^~)('!*@]+(@[0-9.\-a-z]+)$/)
.pattern(/^[a-z]+:[^~)('!*]+(@[0-9.\-a-z]+)$/)
.required(),
imports: Joi.array().items(Joi.string()).required(),
}),
Expand Down

0 comments on commit 304ffb2

Please sign in to comment.