|
22 | 22 | */ |
23 | 23 |
|
24 | 24 | /*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */ |
25 | | -/*global define, $, window, setTimeout, ArrayBuffer, Int8Array */ |
| 25 | +/*global define, $, window, setTimeout */ |
26 | 26 | /*unittests: StringMatch */ |
27 | 27 |
|
28 | 28 | define(function (require, exports, module) { |
@@ -149,7 +149,7 @@ define(function (require, exports, module) { |
149 | 149 | * @param {Array} specials list of special indexes in str (from findSpecialCharacters) |
150 | 150 | * @param {int} startingSpecial index into specials array to start scanning with |
151 | 151 | * @param {boolean} lastSegmentStart optional which character does the last segment start at |
152 | | - * @return {{ranges:Array.{text:string, matched:boolean, includesLastSegment:boolean}, matchGoodness:int, scoreDebug: Object}} matched ranges and score |
| 152 | + * @return {{ranges:Array.<{text:string, matched:boolean, includesLastSegment:boolean}>, matchGoodness:int, scoreDebug: Object}} matched ranges and score |
153 | 153 | */ |
154 | 154 | function getMatchRanges(query, str, compareStr, specials, startingSpecial, lastSegmentStart) { |
155 | 155 | var ranges = []; |
@@ -393,7 +393,7 @@ define(function (require, exports, module) { |
393 | 393 | * @param {Array} specials list of special indexes in str (from findSpecialCharacters) |
394 | 394 | * @param {int} startingSpecial index into specials array to start scanning with |
395 | 395 | * @param {boolean} lastSegmentStart which character does the last segment start at |
396 | | - * @return {{ranges:Array.{text:string, matched:boolean, includesLastSegment:boolean}, remainder:string, matchGoodness:int, scoreDebug: Object}} matched ranges and score |
| 396 | + * @return {{ranges:Array.<{text:string, matched:boolean, includesLastSegment:boolean}>, remainder:string, matchGoodness:int, scoreDebug: Object}} matched ranges and score |
397 | 397 | */ |
398 | 398 | function _lastSegmentSearch(query, str, compareStr, specials, startingSpecial, lastSegmentStart) { |
399 | 399 | var queryCounter, matchRanges; |
@@ -436,7 +436,7 @@ define(function (require, exports, module) { |
436 | 436 | * @param {string} str the original string to search |
437 | 437 | * @param {Array} specials list of special indexes in str (from findSpecialCharacters) |
438 | 438 | * @param {int} lastSegmentSpecialsIndex index into specials array to start scanning with |
439 | | - * @return {{ranges:Array.{text:string, matched:boolean, includesLastSegment:boolean}, matchGoodness:int, scoreDebug: Object}} matched ranges and score |
| 439 | + * @return {{ranges:Array.<{text:string, matched:boolean, includesLastSegment:boolean}>, matchGoodness:int, scoreDebug: Object}} matched ranges and score |
440 | 440 | */ |
441 | 441 | function _computeMatch(query, str, specials, lastSegmentSpecialsIndex) { |
442 | 442 | // set up query as all lower case and make a lower case string to use for comparisons |
|
0 commit comments