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

Avoid regexp for expression continuations #130

Merged
merged 7 commits into from
Aug 8, 2022

Conversation

DylanPiercey
Copy link
Contributor

Switch from regexp based parsing for the expression continuations. This slightly improves performance and more importantly fixes usage of the parser in safari.

@changeset-bot
Copy link

changeset-bot bot commented Aug 5, 2022

🦋 Changeset detected

Latest commit: f923c5e

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 avoid-regexp-for-expression-continuations branch from b632c12 to 08bdb4e Compare August 5, 2022 23:06
@codecov
Copy link

codecov bot commented Aug 5, 2022

Codecov Report

Merging #130 (f923c5e) into main (250c17b) will decrease coverage by 0.48%.
The diff coverage is 93.52%.

@@            Coverage Diff             @@
##             main     #130      +/-   ##
==========================================
- Coverage   92.51%   92.02%   -0.49%     
==========================================
  Files          26       26              
  Lines         735      803      +68     
  Branches      244      268      +24     
==========================================
+ Hits          680      739      +59     
- Misses         40       49       +9     
  Partials       15       15              
Impacted Files Coverage Δ
src/states/PLACEHOLDER.ts 100.00% <ø> (ø)
src/util/constants.ts 100.00% <ø> (ø)
src/states/TEMPLATE_STRING.ts 69.23% <71.42%> (-14.11%) ⬇️
src/states/OPEN_TAG.ts 88.54% <75.00%> (-2.22%) ⬇️
src/states/ATTRIBUTE.ts 92.94% <91.66%> (-2.06%) ⬇️
src/states/EXPRESSION.ts 91.93% <98.66%> (+2.40%) ⬆️
src/states/INLINE_SCRIPT.ts 100.00% <100.00%> (ø)
src/states/TAG_NAME.ts 100.00% <100.00%> (ø)
src/util/util.ts 87.50% <100.00%> (+1.78%) ⬆️
... and 3 more

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

@DylanPiercey DylanPiercey force-pushed the avoid-regexp-for-expression-continuations branch from 08bdb4e to f886c27 Compare August 6, 2022 04:49
@DylanPiercey DylanPiercey merged commit ebc850f into main Aug 8, 2022
@DylanPiercey DylanPiercey deleted the avoid-regexp-for-expression-continuations branch August 8, 2022 21:47
@github-actions github-actions bot mentioned this pull request Aug 8, 2022
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