How is the substitution "regex" so bad
So on desktop, you can do `s/foo/bar/` to replace "foo" with "bar/"(sic)
On mobile it sends a normal message.
This comes from old chat convention of programmers using regex as a shorthand to signify mistakes in their or others messages.
So the list of issues:
A: Discord puts a trailing slash in. This is stupid.
B: There is no option to turn this "parsing" off.
I would really prefer this "feature" didn't exist if it's implemented this poorly.
C: Discord will attempt to parse something that looks like regex even with a leading space: ` s/foo/bar/`.
One thing I've seen things like wee-slack do is parse regex (but you know, with an actual regex engine so it's actually kinda useful), but if you put a leading space in it just posts it as a message.
This is handy if you find the regex replacements useful, but still want to be able to easily send a message that is just regex, for example to point out a mistake in someone else's message.
E: It's not even pretending to be a regex engine, it's a super basic search and replace.
-
just don't put a trailing slash
0
댓글을 남기려면 로그인하세요.
댓글
댓글 1개