Skip to content

Better regex parsing in annotation range #515

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
May 8, 2025
Merged

Better regex parsing in annotation range #515

merged 2 commits into from
May 8, 2025

Conversation

pomber
Copy link
Contributor

@pomber pomber commented May 8, 2025

Now, regex in annotation ranges allow escaped [] and ().

So it supports cases like this:

```jsx
// !Fold[/className="([^"]+)"/g]
function Foo() {
  return (
    <div className="bg-red-200 opacity-50">
      <span className="border">hey</span>
    </div>
  )
}
```

Copy link

vercel bot commented May 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
codehike.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2025 11:50am

@github-actions github-actions bot added the changeset PR including changesets label May 8, 2025
Copy link
Contributor

github-actions bot commented May 8, 2025

Try codehike from this pull request in your project with:

npm i https://pkg.pr.new/codehike@515

@pomber pomber merged commit eb1a4ba into next May 8, 2025
4 checks passed
@github-actions github-actions bot removed the changeset PR including changesets label May 13, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant