mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 91e99652cd5fcfc072387c64e151b435e39e8dcf (#6962)
This commit is contained in:
@@ -532,6 +532,12 @@ export interface FuzzyScorer {
|
||||
|
||||
export function fuzzyScore(pattern: string, patternLow: string, patternPos: number, word: string, wordLow: string, wordPos: number, firstMatchCanBeWeak: boolean): FuzzyScore | undefined {
|
||||
|
||||
if (patternPos > 0) {
|
||||
pattern = pattern.substr(patternPos);
|
||||
patternLow = patternLow.substr(patternPos);
|
||||
patternPos = 0;
|
||||
}
|
||||
|
||||
const patternLen = pattern.length > _maxLen ? _maxLen : pattern.length;
|
||||
const wordLen = word.length > _maxLen ? _maxLen : word.length;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user