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

Chat Rich Text Filtering and Unit Tests #147

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

AlexWolski
Copy link
Contributor

This PR prevents invalid tags from breaking the rich text rendering:

  • Add a closing tag where one is missing
  • Remove a closing tag when there is no corresponding opening tag
  • New unit tests to validate the chat filtering

Input text:
Input Text

Current rendering behavior:
Input Text without enhancement

Behavior with new filtering enhancement:
Filtered Text

Unit tests:
All unit tests passing

"GUID:49818357e697641afb75d2f8acaf1861",
"GUID:b8c9b6a82a342504c8e4a2747471d23c",
"GUID:02f771204943f4a40949438e873e3eff",
"GUID:0acc523941302664db1f4e527237feb3",
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's with all these asmdef file changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I didn't realize you could see my drafts on github. This contains the changes from the assembly definitions branch. I'll merge that branch first so this diff disappears. Please ignore.

@AutumnThyme
Copy link
Collaborator

Also, when adding this, please also add this when a user set's their name/after the bracket color format is transformed into all rich text tags as people end up breaking stuff by mixing together both rich text and the color tags.

@AutumnThyme
Copy link
Collaborator

What's the status on this?

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