-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from microsoft/hggz/url_regex_fix_pipeline
fix: sanitize unescaped problematic url regex strings
- Loading branch information
Showing
2 changed files
with
162 additions
and
3 deletions.
There are no files selected for viewing
85 changes: 85 additions & 0 deletions
85
samples/v1.4/Tests/Action.Execute.With.RegexValidation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | ||
"type": "AdaptiveCard", | ||
"version": "1.4", | ||
"body": [ | ||
{ | ||
"type": "TextBlock", | ||
"text": "Present a form and submit it back to the originator (with validation!)" | ||
}, | ||
{ | ||
"type": "ActionSet", | ||
"actions": [ | ||
{ | ||
"type": "Action.Execute", | ||
"title": "ActionSet Execute", | ||
"verb": "doActionSetStuff", | ||
"iconUrl": "https://adaptivecards.io/content/Closed%20bug%2092x92.png", | ||
"associatedInputs": "none", | ||
"data": { | ||
"y": -1 | ||
} | ||
}, | ||
{ | ||
"type": "Action.ShowCard", | ||
"title": "ShowCard", | ||
"card": { | ||
"type": "AdaptiveCard", | ||
"actions": [ | ||
{ | ||
"type": "Action.Execute", | ||
"title": "Neat!", | ||
"associatedInputs": "none" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Input.Text", | ||
"id": "firstRegexCase", | ||
"isRequired": true, | ||
"regex": "^([a-zA-Z0-9._%+-]+@outokumpu\.com)(,[a-zA-Z0-9._%+-]+@outokumpu\.com)*$", | ||
"label": "What is your first regex case?" | ||
}, | ||
{ | ||
"type": "Input.Text", | ||
"id": "secondRegexCase", | ||
"regex": "^([a-zA-Z0-9._%+-]+@outokumpu\\.com)(,[a-zA-Z0-9._%+-]+@outokumpu\\.com)*$", | ||
"label": "What is your second regex case?" | ||
}, | ||
{ | ||
"type": "Input.Text", | ||
"id": "thirdRegexCase", | ||
"isRequired": true, | ||
"regex": "^([a-zA-Z0-9._%+-]+@outokumpu\\\.com)(,[a-zA-Z0-9._%+-]+@outokumpu\\\.com)*$", | ||
"label": "What is your third regex case?" | ||
}, | ||
{ | ||
"type": "Input.Text", | ||
"id": "fourthRegexCase", | ||
"isRequired": true, | ||
"regex": "^([a-zA-Z0-9._%+-]+@outokumpu\\\\.com)(,[a-zA-Z0-9._%+-]+@outokumpu\\\\.com)*$", | ||
"label": "What is your fourth regex case?" | ||
}, | ||
{ | ||
"type": "Input.Text", | ||
"id": "fifthRegexCase", | ||
"isRequired": true, | ||
"regex": "^([a-zA-Z0-9._%+-]+@outokumpu\\\\\.com)(,[a-zA-Z0-9._%+-]+@outokumpu\\\\\.com)*$", | ||
"label": "What is your fifth regex case?" | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"type": "Action.Execute", | ||
"title": "Action.Execute", | ||
"verb": "doStuff", | ||
"iconUrl": "https://adaptivecards.io/content/Closed%20bug%2092x92.png", | ||
"data": { | ||
"x": 13 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters