Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parsed text string literals #158

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Conversation

DylanPiercey
Copy link
Contributor

Description

Fixes an regression where string literals inside of parsed text nodes (eg <script>) were not properly changing the parser state. This caused issues when comment like syntax was embedded within these string literals"

  • I have updated/added documentation affected by my changes.
  • I have added tests to cover my changes.

@changeset-bot
Copy link

changeset-bot bot commented Mar 13, 2023

🦋 Changeset detected

Latest commit: 87b828f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
htmljs-parser Patch

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

@DylanPiercey DylanPiercey force-pushed the fix-parsed-text-regression branch from 77f6b17 to 87b828f Compare March 13, 2023 21:38
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Patch coverage: 92.30% and project coverage change: +0.22 🎉

Comparison is base (0ef31cd) 93.43% compared to head (87b828f) 93.65%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #158      +/-   ##
==========================================
+ Coverage   93.43%   93.65%   +0.22%     
==========================================
  Files          26       27       +1     
  Lines        1280     1293      +13     
  Branches      291      293       +2     
==========================================
+ Hits         1196     1211      +15     
+ Misses         54       53       -1     
+ Partials       30       29       -1     
Impacted Files Coverage Δ
src/states/PARSED_STRING.ts 88.88% <88.88%> (ø)
src/states/PARSED_TEXT_CONTENT.ts 100.00% <100.00%> (ø)
src/states/index.ts 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

1 participant