code: function _prefixMatchResult(str, query) {
          var result = new SearchResult(str);
  
          result.matchGoodness = -Number.MAX_VALUE;
  
          if (str.substr(0, query.length) !== query) {
              // Penalize for not matching case
              result.matchGoodness *= 0.5;
          }
  
          if (DEBUG_SCORES) {
              result.scoreDebug = {
                  beginning: -result.matchGoodness
              };
          }
  
          result.stringRanges = [{
              text: str.substr(0, query.length),
              matched: true,
              includesLastSegment: true
          }];
          if (str.length > query.length) {
              result.stringRanges.push({
                  text: str.substring(query.length),
                  matched: false,
                  includesLastSegment: true
              });
          }
          return result;
      }
docs: /*
  If we short circuit normal matching to produce a prefix match,
  this function will generate the appropriate SearchResult.
  This function assumes that the prefix match check has already
  been performed.
  
  @param {string} str  The string with the prefix match for the query
  @param {string} query  The query that matched the beginning of str
  @return {{ranges:Array.<{text:string, matched:boolean, includesLastSegment:boolean}>, matchGoodness:int, scoreDebug: Object}} ranges has a matching range for beginning of str
  and a non-matching range for the end of the str
  the score is -Number.MAX_VALUE in all cases