biomejs / biome

A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.
https://biomejs.dev
Apache License 2.0
15.6k stars 486 forks source link

refactor(noMisleadingCharacterClass): don't panic on malformed escape seq #4590

Closed Conaclos closed 1 week ago

Conaclos commented 1 week ago

Summary

Fix https://github.com/biomejs/biome/issues/4587

Test Plan

I added a test.

codspeed-hq[bot] commented 1 week ago

CodSpeed Performance Report

Merging #4590 will not alter performance

Comparing conaclos/noMisleadingCharacterClass-malformed-char-class (f6b6d32) with main (c1645ee)

Summary

✅ 99 untouched benchmarks