Skip to content
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

Merged
merged 13 commits into from
Jul 3, 2023
Merged

[Microsoft Teams] Fix URL RegEx #27846

merged 13 commits into from
Jul 3, 2023

Conversation

MichaelYochpaz
Copy link
Contributor

@MichaelYochpaz MichaelYochpaz commented Jul 2, 2023

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

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:
Screenshot 2023-07-02 at 13 54 17

@MichaelYochpaz MichaelYochpaz marked this pull request as ready for review July 2, 2023 10:54
@MichaelYochpaz
Copy link
Contributor Author

@bziser Many of the changes are due to ruff autofixes. You can see a diff without them (only with fix-related changes) here:
https://github.com/demisto/content/pull/27846/files/b22390a9c9c202c53e4ad5e9e629e3149cf71d61

Copy link
Contributor

@bziser bziser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

bziser
bziser previously approved these changes Jul 2, 2023
Copy link
Contributor

@bziser bziser left a 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

@bziser bziser dismissed their stale review July 2, 2023 14:42

changes

Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com>
Copy link
Contributor

@bziser bziser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great

Co-authored-by: Binat Ziser <89336697+bziser@users.noreply.github.com>
@MichaelYochpaz MichaelYochpaz merged commit b3f33d8 into master Jul 3, 2023
@MichaelYochpaz MichaelYochpaz deleted the fix-ms-teams-links branch July 3, 2023 09:24
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Jul 26, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants