Skip to content

Conversation

sethamus
Copy link
Contributor

@sethamus sethamus commented Oct 4, 2025

Prerequisites checklist

What is the purpose of this pull request?

This PR fixes a bug where the no-important rule reported incorrect locations when !important was preceded by comments containing characters represented by surrogate pairs (such as emoji).

What changes did you make? (Give an overview)

Updated the comment-stripping logic to replace each code unit rather than code points

Related Issues

Fixes #284

Is there anything you'd like reviewers to focus on?

@eslint-github-bot eslint-github-bot bot added the bug Something isn't working label Oct 4, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Oct 4, 2025
@sethamus sethamus marked this pull request as draft October 4, 2025 14:34
@sethamus sethamus marked this pull request as ready for review October 4, 2025 15:18
@mdjermanovic mdjermanovic added accepted There is consensus among the team that this change meets the criteria for inclusion contributor pool labels Oct 4, 2025
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdjermanovic mdjermanovic merged commit 33ea905 into eslint:main Oct 4, 2025
22 checks passed
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion bug Something isn't working contributor pool
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

Bug: Misreported location for !important when preceding comment has emoji
2 participants