Skip to content

Commit

Permalink
Improve regex for Entry Point Uri Path to accept at least 2 characters (
Browse files Browse the repository at this point in the history
#2601)

* feat(validate entryPointUriPath): entyrypoint uri path should accept two characters

* feat(validate entryPointUriPath): check for special character #
  • Loading branch information
ddouglasz authored May 11, 2022
1 parent 8d3fe74 commit 5d0a461
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/polite-jars-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-frontend/application-config': patch
---

validating entry point uri path should allow two characters
2 changes: 1 addition & 1 deletion packages/application-config/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"oneOf": [
{
"type": "string",
"pattern": "^[^\\-_]([0-9a-z]|[\\-_](?![\\-_])){2,64}[^\\-_]$"
"pattern": "^[^\\-_#]([0-9a-z]|[\\-_](?![\\-_])){0,62}[^\\-_#]$"
},
{
"$ref": "#/definitions/envVariablePlaceholder"
Expand Down

0 comments on commit 5d0a461

Please sign in to comment.