code: private boolean matchCheck(int upperRange, int s, int prev, boolean interrupt) throws InterruptedException {
          if (Config.USE_MATCH_RANGE_MUST_BE_INSIDE_OF_SPECIFIED_RANGE) {
              if (Config.USE_FIND_LONGEST_SEARCH_ALL_OF_RANGE) {
                  //range = upperRange;
                  if (matchAt(upperRange, s, prev, interrupt) != -1) {
                      if (!isFindLongest(regex.options)) return true;
                  }
              } else {
                  //range = upperRange;
                  if (matchAt(upperRange, s, prev, interrupt) != -1) return true;
              }
          } else {
              if (Config.USE_FIND_LONGEST_SEARCH_ALL_OF_RANGE) {
                  if (matchAt(end, s, prev, interrupt) != -1) {
                      //range = upperRange;
                      if (!isFindLongest(regex.options)) return true;
                  }
              } else {
                  //range = upperRange;
                  if (matchAt(end, s, prev, interrupt) != -1) return true;
              }
          }
          return false;
      }
docs: MATCH_AND_RETURN_CHECK