-
Notifications
You must be signed in to change notification settings - Fork 6.4k
fix: add url check and wrapping for commit msg field #7218
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7218 +/- ##
=======================================
Coverage 41.17% 41.17%
=======================================
Files 161 161
Lines 21612 21612
=======================================
Hits 8899 8899
Misses 11446 11446
Partials 1267 1267
Continue to review full report at Codecov.
|
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.
Thank you @saumeya ! Added one small comment, can you please take a look?
@@ -146,6 +146,18 @@ export class ApplicationDetails extends React.Component<RouteComponentProps<{nam | |||
return this.filterTreeNode(resNode, treeFilter); | |||
}); | |||
|
|||
const URL_REGEX = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/; |
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.
Nitpick: We already have URL regex defined in application-summary.tsx:
Can you please move it to https://github.com/argoproj/argo-cd/blob/master/ui/src/app/applications/components/utils.tsx and re-use in both application-summary.tsx and application-details.tsx
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.
sure
Signed-off-by: saumeya <saumeyakatyal@gmail.com>
6fa9fa5
to
f1a381d
Compare
lint check Signed-off-by: saumeya <saumeyakatyal@gmail.com>
f1a381d
to
4f69807
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.
LGTM!
Signed-off-by: saumeya saumeyakatyal@gmail.com
closes #7158

Checklist: