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

MarkdownSanitizer escaping incorrectly #2358

Closed
3 tasks done
SurfyDevelopment opened this issue Dec 23, 2022 · 1 comment
Closed
3 tasks done

MarkdownSanitizer escaping incorrectly #2358

SurfyDevelopment opened this issue Dec 23, 2022 · 1 comment

Comments

@SurfyDevelopment
Copy link

General Troubleshooting

  • I have checked for similar issues on the Issue-tracker.
  • I have updated to the latest JDA version
  • I have checked the branches or the maintainers' PRs for upcoming bug fixes.

Expected Behaviour

This text is supposed to be escaped from:

. 
    > TEST

to:

. 
    \> TEST

However, this does not happen.

As shown:
image

Debug:
image

Code Example for Reproduction Steps

String escapedText = MarkdownSanitizer.escape(". \n    > TEST");

Code for JDABuilder or DefaultShardManagerBuilder used

Irrelevant

Exception or Error

No response

@MinnDevelopment
Copy link
Member

Fixed in 5.0.0-beta.10

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

No branches or pull requests

2 participants