Skip to content

Commit 0d67d56

Browse files
fix(schemas): allow spaces in Azure DevOps project and repo names
Update the regex patterns for `projects` and `repos` in the Azure DevOps connection schema to accept names containing spaces. Azure DevOps natively supports spaces in project and repository names, but the previous pattern `[\w.-]+` excluded them. The org segment keeps its original restriction since Azure DevOps organization names are URL-based and don't support spaces. Fixes #1166 Co-authored-by: Brendan Kellam <brendan-kellam@users.noreply.github.com>
1 parent 1bac95b commit 0d67d56

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/snippets/schemas/v3/azuredevops.schema.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"type": "array",
8383
"items": {
8484
"type": "string",
85-
"pattern": "^[\\w.-]+\\/[\\w.-]+$"
85+
"pattern": "^[\\w.-]+\\/[\\w. -]+$"
8686
},
8787
"default": [],
8888
"examples": [
@@ -97,7 +97,7 @@
9797
"type": "array",
9898
"items": {
9999
"type": "string",
100-
"pattern": "^[\\w.-]+\\/[\\w.-]+\\/[\\w.-]+$"
100+
"pattern": "^[\\w.-]+\\/[\\w. -]+\\/[\\w. -]+$"
101101
},
102102
"default": [],
103103
"examples": [

packages/schemas/src/v3/azuredevops.schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const schema = {
8181
"type": "array",
8282
"items": {
8383
"type": "string",
84-
"pattern": "^[\\w.-]+\\/[\\w.-]+$"
84+
"pattern": "^[\\w.-]+\\/[\\w. -]+$"
8585
},
8686
"default": [],
8787
"examples": [
@@ -96,7 +96,7 @@ const schema = {
9696
"type": "array",
9797
"items": {
9898
"type": "string",
99-
"pattern": "^[\\w.-]+\\/[\\w.-]+\\/[\\w.-]+$"
99+
"pattern": "^[\\w.-]+\\/[\\w. -]+\\/[\\w. -]+$"
100100
},
101101
"default": [],
102102
"examples": [

schemas/v3/azuredevops.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"type": "array",
5454
"items": {
5555
"type": "string",
56-
"pattern": "^[\\w.-]+\\/[\\w.-]+$"
56+
"pattern": "^[\\w.-]+\\/[\\w. -]+$"
5757
},
5858
"default": [],
5959
"examples": [
@@ -68,7 +68,7 @@
6868
"type": "array",
6969
"items": {
7070
"type": "string",
71-
"pattern": "^[\\w.-]+\\/[\\w.-]+\\/[\\w.-]+$"
71+
"pattern": "^[\\w.-]+\\/[\\w. -]+\\/[\\w. -]+$"
7272
},
7373
"default": [],
7474
"examples": [

0 commit comments

Comments
 (0)