Skip to content

Edit view shows wrong contents if the actual original message started with numbers #21625

@Avamander

Description

@Avamander

Steps to reproduce

  1. Send a message containing "3. june seems fine"
  2. Press "edit", the message is shown as "1. june seems fine", modify and save
  3. Now your message has a different date than originally entered or displayed
  4. Potentially very very bad consequences if you don't notice it

Outcome

What did you expect?

"3. june seems fine" remains so in edit view

What happened instead?

"3." gets replaced with "1."

Operating system

N/A

Browser information

N/A

URL for webapp

app.element.io

Application version

Element version: 1.10.8 Olm version: 3.2.8

Homeserver

matrix.org

Will you send logs?

No

Metadata

Metadata

Assignees

Labels

A-Message-EditingO-UncommonMost users are unlikely to come across this or unexpected workflowS-MinorImpairs non-critical functionality or suitable workarounds existT-DefectX-Regression

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions