html/rainbow/rainbow.js
function _hasCompleteOverlap(start1, end1, start2, end2) {

        // if the starting and end positions are exactly the same
        // then the first one should stay and this one should be ignored
        if (start2 == start1 && end2 == end1) {
            return false;
        }

        return start2 <= start1 && end2 >= end1;
    }
function _hasCompleteOverlap(start1, end1, start2, end2) {

        // if the starting and end positions are exactly the same
        // then the first one should stay and this one should be ignored
        if (start2 == start1 && end2 == end1) {
            return false;
        }

        return start2 <= start1 && end2 >= end1;
    }
function _hasCompleteOverlap ( start1 , end1 , start2 , end2 ) { // if the starting and end positions are exactly the same // then the first one should stay and this one should be ignored if ( start2 == start1 && end2 == end1 ) { return false ; } return start2 <= start1 && end2 >= end1 ; }
determines if two different matches have complete overlap with each other

@param {number} start1   start position of existing match
@param {number} end1     end position of existing match
@param {number} start2   start position of new match
@param {number} end2     end position of new match
@returns {boolean}
determines if two different matches have complete overlap with each other