 #                uncheckedMidSection: Math.max 0, matchLen - startLen - endLen
 #                lengthError: matchLen - pLen
 #          else
-#            console.log "Sorry, matchLen (" + matchLen + ") is not between " + 0.5*pLen + " and " + 1.5*pLen
+#            console.log "Sorry, matchLen (" + matchLen + ") is not between " +
+#                0.5*pLen + " and " + 1.5*pLen
 #        else
 #          console.log "endSlice ('" + endSlice + "') not found"
 #      else

  # You don't need to call the functions below this point manually

  searchForSlice: (text, slice, expectedStartLoc) ->
#    console.log "searchForSlice: '" + text + "', '" + slice + "', " + expectedStartLoc

    r1 = @dmp.match_main text, slice, expectedStartLoc
    startIndex = r1.index

      pattern = pattern.toLowerCase()
    while (i = text.indexOf pattern) > -1
      do =>
#        console.log "Found '" + pattern + "' @ " + i +
#            " (=" + (index + i) + ")"
        results.push
          start: index + i
          end: index + i + pLen
