mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-31 17:19:56 +08:00
chore: disable rules in oxlint (#9154)
This commit is contained in:
@@ -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(''),
|
||||
|
||||
Reference in New Issue
Block a user