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(core): allow extra spaces to be striped to any css classes #1352

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

ghiscoding
Copy link
Owner

@ghiscoding ghiscoding commented Jan 19, 2024

  • using the classNameToList() util, we can permit any amount of spaces to css classes like Formatter addClasses
  • also cleanup and simplify some code around other css classes, classNameToList returns an array of string and we can take advantage of iterator available in DOM classList.add() and .remove()

- using the `classNameToList()` util, we can permit any amount of spaces to css classes like Formatter `addClasses`
- also cleanup and simplify some code around other css classes, `classNameToList` returns an array of string and we can take advantage of iterator available in DOM classList `.add()` and `.remove()`
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2657d90) 99.5% compared to head (b3d2414) 99.5%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1352     +/-   ##
========================================
- Coverage    99.5%   99.5%   -0.0%     
========================================
  Files         199     199             
  Lines       21571   21570      -1     
  Branches     7203    7201      -2     
========================================
- Hits        21457   21456      -1     
  Misses        114     114             

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

@ghiscoding ghiscoding merged commit e5e29c0 into master Jan 19, 2024
5 checks passed
@ghiscoding ghiscoding deleted the bugfix/highlight-strip-css-classes-extra-spaces branch January 19, 2024 20:54
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.

None yet

2 participants