Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
payloadToUse.pairwiseAlignments.forEach(([template, alignedSeq]) => {
const condensedSeq = condensePairwiseAlignmentDifferences(
template.alignmentData.sequence,
alignedSeq.alignmentData.sequence
);
let re = /r+/gi;
let match;
const additionalSelectionLayers = [];
while ((match = re.exec(condensedSeq)) != null) {
additionalSelectionLayers.push({
start: match.index,
end: match.index + match[0].length - 1,
...highlightRangeProps
});
}
re = /g+/gi;
// let match;
while ((match = re.exec(condensedSeq)) != null) {