6853: prevent browser freeze caused by invalid participant name in sequenceDiagram#7055
Conversation
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
🦋 Changeset detectedLatest commit: 6fecb98 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@mermaid-js/examples
mermaid
@mermaid-js/layout-elk
@mermaid-js/layout-tidy-tree
@mermaid-js/mermaid-zenuml
@mermaid-js/parser
@mermaid-js/tiny
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #7055 +/- ##
=======================================
Coverage 3.55% 3.55%
=======================================
Files 473 473
Lines 47454 47454
Branches 730 730
=======================================
Hits 1687 1687
Misses 45767 45767
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
sidharthv96
left a comment
There was a problem hiding this comment.
Not a regex guru, if it works and don't break other tests, looks good to me. 😬
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Co-authored-by: omkarht <omkar@mermaidchart.com>
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
📑 Summary
Fixes an issue where incorrect participant syntax in sequenceDiagram could cause the browser to hang due to excessive recursion during parsing.
Resolves #6853
📏 Design Decisions
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSIONis used for all new features.pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.