lighter
lighter copied to clipboard
Regex containing `)` or `]`
This fails
```jsx
// !Fold[/className="([^"]+)"/g]
function Foo() {
return (
<div className="bg-red-200 opacity-50">
<span className="border">hey</span>
</div>
)
}
```
with: Error: Invalid RegExp string: [/className="([^"]
Tried escaping those characters?