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

#2498 - Fix the link bug in the chat #2499

Merged
merged 6 commits into from
Jan 9, 2025

Conversation

SebinSong
Copy link
Collaborator

closes #2498

@SebinSong SebinSong self-assigned this Jan 8, 2025
Copy link

cypress bot commented Jan 8, 2025

group-income    Run #3673

Run Properties:  status check passed Passed #3673  •  git commit f4ac52156d ℹ️: Merge ab5ebabc0d0a65d82f13520cc3e08ded71fbe96b into 191962e2ef071555140018062026...
Project group-income
Branch Review sebin/task/#2498-chat-link-issue
Run status status check passed Passed #3673
Run duration 10m 47s
Commit git commit f4ac52156d ℹ️: Merge ab5ebabc0d0a65d82f13520cc3e08ded71fbe96b into 191962e2ef071555140018062026...
Committer Sebin Song
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 10
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 112
View all changes introduced in this branch ↗︎

@@ -87,9 +88,14 @@ function createRecursiveDomObjects (element: any): DomObject {
nodeObj.children.push(createRecursiveDomObjects(child))
}

nodeObj.children = nodeObj.children.filter(
child => child.tagName || (child.text || '').trim().length
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@taoeffect Had more thorough investigation for the original issue and found out trim() here was the cause of the issue. As far as I remember, this was added to remove unnecessary \n created from `DOMParser: parseFromString() API. So updated the logic here.

@SebinSong
Copy link
Collaborator Author

@taoeffect Updated the PR with the better fix

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

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

Nicely done @SebinSong !!

@taoeffect taoeffect merged commit 1f05932 into master Jan 9, 2025
4 checks passed
@taoeffect taoeffect deleted the sebin/task/#2498-chat-link-issue branch January 9, 2025 18:44
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.

When two links are put in the chat next to one another, there's no space between them
3 participants