Regex not standardized - causes data loss

Created on 13 January 2023, almost 2 years ago
Updated 28 April 2023, over 1 year ago

Problem/Motivation

We sometimes use multiple icons in the same Line. When this happens and we save a revision / node the text between the two icons will be deleted. I figure this happens because one of the regexes to replace svg to icons is missing and question mark making it to eager. I supplied the solution we use and fixed also the regex in the plugin.es6.js which was missing a backslash.

Steps to reproduce

Add multiple inline icons to the same line with some text between it and save the node.

Proposed resolution

see attached patch

Remaining tasks

none

User interface changes

none

API changes

none

Data model changes

none

πŸ› Bug report
Status

Fixed

Version

2.24

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024