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

[#IOCOM-987] Invalidate clickable links in email #297

Merged
merged 9 commits into from
Feb 5, 2024
Merged

Conversation

Garma00
Copy link
Contributor

@Garma00 Garma00 commented Jan 25, 2024

List of Changes

The text where we are using the regex will always been of 134 character so we are not affected by the problem highlighted by sonar.

Motivation and Context

We want to avoid clickable links in email

How Has This Been Tested?

Unit test

Screenshots (if appropriate):

Types of changes

  • Chore (nothing changes by a user perspective)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Replace links with "[link rimosso]"
add a zero-width space in order to make links not clickable
@Garma00 Garma00 requested a review from a team as a code owner January 25, 2024 15:40
Copy link

Jira Pull Request Link

This Pull Request refers to the following Jira issue IOCOM-987

EmailNotification/__tests__/utils.test.ts Outdated Show resolved Hide resolved
EmailNotification/__tests__/utils.test.ts Outdated Show resolved Hide resolved
EmailNotification/__tests__/utils.test.ts Outdated Show resolved Hide resolved
EmailNotification/utils.ts Outdated Show resolved Hide resolved
If we add a zero-width space for every `.` before the text is truncated then the truncated text could contain less than 134 visible character.
Copy link

sonarqubecloud bot commented Feb 2, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

2 Security Hotspots

See analysis details on SonarCloud

@Garma00 Garma00 merged commit fdf8128 into master Feb 5, 2024
4 of 5 checks passed
@Garma00 Garma00 deleted the IOCOM-987 branch February 5, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants