Skip to content

Keep escaped characters in CSS strings - #377

Open
Sriram-Nambiar wants to merge 1 commit into
openzim:mainfrom
Sriram-Nambiar:escaped-characters
Open

Sriram-Nambiar wants to merge 1 commit into
openzim:mainfrom
Sriram-Nambiar:escaped-characters

Conversation

@Sriram-Nambiar

Copy link
Copy Markdown
Contributor

Fixes CSS string serialization where escaped Unicode characters (e.g. \e123) were converted into literal characters during rewriting.

  • Preserve CSS escapes when serializing StringToken nodes.
  • Handle unterminated strings without modifying their original representation.

Fixes #376

@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4cbfe83) to head (4f45fcf).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #377   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           42        42           
  Lines         2867      2900   +33     
  Branches       432       443   +11     
=========================================
+ Hits          2867      2900   +33     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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.

Escaped characters in CSS are not properly kept

1 participant