Skip to content

fix(code): fix regex to not eat preceding character#8540

Open
mejo- wants to merge 1 commit intomainfrom
fix/code_input_rule
Open

fix(code): fix regex to not eat preceding character#8540
mejo- wants to merge 1 commit intomainfrom
fix/code_input_rule

Conversation

@mejo-
Copy link
Copy Markdown
Member

@mejo- mejo- commented May 8, 2026

Fixes: #5483

This bug got introduced in upstream Tiptap with ueberdosis/tiptap#5916, which removes named capturing groups and lookbehind assertions from the regex in order to fix support for Safari < 16.4.

Upstream issue ueberdosis/tiptap#6358 tracks this bug a ping some months back whether it would be an option to revert this change nowadays didn't get any reply.

So let's overwrite the regexes on our side.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

Fixes: #5483

This bug got introduced in upstream Tiptap with
ueberdosis/tiptap#5916, which removes named
capturing groups and lookbehind assertions from the regex in order to
fix support for Safari < 16.4.

Upstream issue ueberdosis/tiptap#6358 tracks
this bug a ping some months back whether it would be an option to revert
this change nowadays didn't get any reply.

So let's overwrite the regexes on our side.

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- self-assigned this May 8, 2026
@mejo- mejo- added the bug Something isn't working label May 8, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team May 8, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team May 8, 2026
@mejo-
Copy link
Copy Markdown
Member Author

mejo- commented May 8, 2026

/backport to stable33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Punctuation-preceded backticks don't visually format when typed

1 participant