Skip to content

fix: prevent error with unclosed tag followed by LF or end of file#2750

Merged
dummdidumm merged 3 commits intosveltejs:masterfrom
jasonlyu123:editing-unclosed
May 2, 2025
Merged

fix: prevent error with unclosed tag followed by LF or end of file#2750
dummdidumm merged 3 commits intosveltejs:masterfrom
jasonlyu123:editing-unclosed

Conversation

@jasonlyu123
Copy link
Member

@jasonlyu123 jasonlyu123 commented Apr 30, 2025

#2742

The reason that it happens to LF but not CRLF is that CRLF has two characters, so it doesn't touch the range of the start tag name, and therefore won't trigger the magic string error. This should also improve auto-import performance a bit because TypeScript only needs to compute auto-imports for Button and not a global auto-import.

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dummdidumm dummdidumm merged commit 0c4e103 into sveltejs:master May 2, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants