-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Microsoft Teams] Fix URL RegEx #27846
Conversation
36d7c59
to
08bed8c
Compare
@bziser Many of the changes are due to ruff autofixes. You can see a diff without them (only with fix-related changes) here: |
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
c723b0e
to
68bee93
Compare
68bee93
to
a4b6b99
Compare
ec207f6
to
38ce8ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check if the url must have .com
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
38ce8ad
to
24b476f
Compare
4b40341
to
700c9e9
Compare
Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com>
* Update unit-test * Bump version * Ruff auto-fixes * Fix invalid URLs failing unit-tests * Fix token being fetched, making tests fail when running locally * Fix test URLs to valid URLs * Update RegEx * Apply suggestions from code review Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com> --------- Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com>
Status
Related Issues
fixes: link to the issue
Description
Fix URL RegEx which previously didn't capture URL parameters (ex:
?param=1
) to capture any string that starts with http/https.Screenshots
Before and after: