chore: disable rules in oxlint (#9154)

This commit is contained in:
Brooooooklyn
2024-12-13 10:49:35 +00:00
parent 2452ccd1e5
commit ea746e3d77
53 changed files with 621 additions and 269 deletions
@@ -16,16 +16,12 @@ export function fuzzyMatch(
query: string,
matchInitial?: boolean
) {
const pureName = name
.trim()
.toLowerCase()
.split('')
const pureName = [...name.trim().toLowerCase()]
.filter(char => char !== ' ')
.join('');
const regex = new RegExp(
query
.split('')
[...query]
.filter(char => char !== ' ')
.map(item => `${escapeRegExp(item)}.*`)
.join(''),