refactor: Moved the escapeX functions from discord.js to @discord.js/formatters (#8957)

* refactor: moved escapeX funcs from discord.js to @discord.js/formatters

- moved escapeX functions from discord.js to @discord.js/formatters
- converted code from JS to TS (including JSDoc and TSDoc)
- made linter happy
- modified the escapeHeading's RegExp to pass the RegExp safety test
- escapeBulletedList now conserves the bullet style (- or *)

* fix: removed useless exports and eslint command

removed useless exports and eslint command

* fix(escapeX): emojis with underlines

porting the fix made in 2c4c5c23d6 into the refactorization PR

Co-authored-by: space <spaceeec@yahoo.com>
This commit is contained in:
Cl00e9ment
2023-01-13 17:21:25 +01:00
committed by GitHub
parent b803a9a899
commit 13ce78af6e
6 changed files with 575 additions and 506 deletions

View File

@@ -1 +1,2 @@
export * from './escapers.js';
export * from './formatters.js';