-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Edit message composer has superfluous escaping #22456
Comments
It's not incorrect, just unnecessary, so will mark this as tolerable |
I disagree with the triaging here. The escaping is incorrect. My message does not contain those backslash and to a non technical user this will look out of place It could even make them move the cursor to delete those characters which is a big ask |
@gsouquet that's a whole class of bugs |
Also chiming in with my own instance of this while editing a message. The editing composer showed an extra backslash, whereas the original message only contained one: Event source
Looking at the event source, I'm confused why |
Otherwise it'd be escaping the https://www.freeformatter.com/json-escape.html
|
Ahhh, duh, right. I suppose the blame does still lie with the edit composer field displaying |
Yeah so that is just the re-escaping code being naive and not checking if the escaping is necessary |
@babolivier Please open a separate issue for that, so we can keep this one focused on the benign cases of unnecessary escaping. Incidentally, I can't reproduce that issue, so please provide repro steps if you can. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry I completely missed this comment. iirc I was reporting an issue with a message that @anoadragon453 sent. I cannot seem to be able to repro it either. So I'll let Andrew open a new issue if it happens again. |
I'm not able to reproduce the issue in your comment at this point @babolivier. I can still reproduce the one in the message editing composer as shown here however. Element Desktop Nightly 2022090801, Arch Linux. |
Steps to reproduce
matrix-react-sdk/res/themes/light/css/_light.scss
as message in ElementOutcome
What did you expect?
To see the edit message composer appear and prefilled with
matrix-react-sdk/res/themes/light/css/_light.scss
What happened instead?
Notice the incorrect escaping before the underscore
Operating system
No response
Browser information
No response
URL for webapp
No response
Application version
No response
Homeserver
No response
Will you send logs?
No
The text was updated successfully, but these errors were encountered: