From b01de71d52355d4590433881ac4b7d50de334cfc Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Mon, 4 Jan 2016 09:04:53 -0800 Subject: [PATCH] Fix lint in services/patternMatcher.ts --- src/services/patternMatcher.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/services/patternMatcher.ts b/src/services/patternMatcher.ts index 3663b1a1d0..93cc5130d7 100644 --- a/src/services/patternMatcher.ts +++ b/src/services/patternMatcher.ts @@ -94,7 +94,7 @@ namespace ts { // The spans in this text chunk that we think are of interest and should be matched // independently. For example, if the chunk is for "UIElement" the the spans of interest - // correspond to "U", "I" and "Element". If "UIElement" isn't found as an exaxt, prefix. + // correspond to "U", "I" and "Element". If "UIElement" isn't found as an exact, prefix. // or substring match, then the character spans will be used to attempt a camel case match. characterSpans: TextSpan[]; } @@ -168,7 +168,7 @@ namespace ts { for (let i = dotSeparatedSegments.length - 2, j = candidateContainers.length - 1; i >= 0; - i--, j--) { + i -= 1, j -= 1) { const segment = dotSeparatedSegments[i]; const containerName = candidateContainers[j]; @@ -581,9 +581,10 @@ namespace ts { for (let i = 0; i < pattern.length; i++) { const ch = pattern.charCodeAt(i); if (isWordChar(ch)) { - if (wordLength++ === 0) { + if (wordLength === 0) { wordStart = i; } + wordLength++; } else { if (wordLength > 0) {