function hasNewlineInRange(text, start, end) {
    for (let i = start; i < end; ++i) {
      if (text.charAt(i) === "\n") {
        return true;
      }
    }

    return false;
  }
@param {string} text
@param {number} start
@param {number} end
@returns {boolean}