mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-21 15:55:50 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -242,7 +242,7 @@ export class FileIndex {
|
||||
prevCode === 45 || // -
|
||||
prevCode === 95 || // _
|
||||
prevCode === 46 || // .
|
||||
prevCode === 32 // space
|
||||
prevCode === 32 // space
|
||||
) {
|
||||
startPositions[startCount++] = bp
|
||||
}
|
||||
@@ -261,7 +261,10 @@ export class FileIndex {
|
||||
let matched = true
|
||||
for (let j = 1; j < nLen; j++) {
|
||||
const pos = haystack.indexOf(needleChars[j]!, prev + 1)
|
||||
if (pos === -1) { matched = false; break }
|
||||
if (pos === -1) {
|
||||
matched = false
|
||||
break
|
||||
}
|
||||
posBuf[j] = pos
|
||||
const gap = pos - prev - 1
|
||||
if (gap === 0) consecBonus += BONUS_CONSECUTIVE
|
||||
|
||||
Reference in New Issue
Block a user