mcb-dev / mCodingBot

The Discord bot for the mCoding Discord server.
https://mcoding.io/discord
MIT License
12 stars 4 forks source link

feat: RUST_REGEX supports more messages #29

Closed qexat closed 2 years ago

Lunarmagpie commented 2 years ago

how so? it is already using \b.

Like \bblazingly\bfast\b

CircuitSacul commented 2 years ago

how so? it is already using \b...?

I think lunar means in between the words (e.x blazingly\bfast)

MithicSpirit commented 2 years ago

Pretty sure that \b doesn't actually match any characters and only boundaries between characters, so now this doesn't match anything.

MithicSpirit commented 2 years ago

imo undo that change. just leave it as a space. If you really want to match different types of spaces you could match on space, nbsp, zwsp, tab, newline, underscore, hyphen, etc.