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: improve detection of regexp vs division #168

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

DylanPiercey
Copy link
Contributor

Description

Improves the detection of division vs regexp expressions to assume division when the preceding character is a quote.
This improves parsing of css grid properties in particular.

Note in the future this could probably be improved to remove the regexp state altogether for non script sections, but that would require a larger refactor.

Checklist:

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

Copy link

changeset-bot bot commented Nov 10, 2023

🦋 Changeset detected

Latest commit: 2842dae

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

Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (4b2b199) 93.85% compared to head (2842dae) 93.78%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #168      +/-   ##
==========================================
- Coverage   93.85%   93.78%   -0.07%     
==========================================
  Files          27       27              
  Lines        1301     1303       +2     
  Branches      297      298       +1     
==========================================
+ Hits         1221     1222       +1     
  Misses         51       51              
- Partials       29       30       +1     
Files Coverage Δ
src/states/EXPRESSION.ts 93.25% <75.00%> (-0.54%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DylanPiercey DylanPiercey merged commit 3a696d0 into main Nov 10, 2023
9 of 11 checks passed
@DylanPiercey DylanPiercey deleted the fix-css-grid-parsing-issue branch November 10, 2023 23:56
@github-actions github-actions bot mentioned this pull request Nov 10, 2023
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