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

escapeMarkdown does not escape long series of markdown characters completely #9655

Open
ImRodry opened this issue Jun 16, 2023 · 0 comments
Open

Comments

@ImRodry
Copy link
Contributor

ImRodry commented Jun 16, 2023

Which package is this bug report for?

formatters

Issue description

I'm not sure what the amount of characters required to reproduce this is but you can reproduce this by simply using this string: _____________________________________. I will include a bigger one with more formatting characters below. The function does escape some of the characters, but not all

Code sample

import { escapeMarkdown } from "@discordjs/formatters"

console.log(escapeMarkdown("  _____________________________________\n/ Hey! You're not supposed to be here   \\\n| I've triggered all the alarms,  we're |\n\\ coming for you buddy                  /\n  -------------------------------------\n         \\   ^__^ \n          \\  (oo)\\_______\n             (__)\\       )\\/\\\n                 ||----w |\n                 ||     ||\n    ")) // haha funny cow

Versions

  • discord.js 14.11.0
  • Node.js v18.15.0
  • Typescript v5.0.4 (although irrelevant)
  • Windows 11, tested in Linux too

Issue priority

Low (slightly annoying)

Which partials do you have configured?

Not applicable

Which gateway intents are you subscribing to?

Not applicable

I have tested this issue on a development release

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant