Content deleted Content added
Sumit.iitp (talk | contribs) No edit summary |
Sumit.iitp (talk | contribs) No edit summary |
||
Line 4:
// Collapse contiguous segments
text = text.replaceAll(regex, ' ');
while ((array1 = segment_regexp.exec(text)) !== null) {
segments.forEach(function(segment, index){▼
console.log(
// expected output: "Found foo. Next starts at 9."
});▼
// expected output: "Found foo. Next starts at 19."
$(paragraph).find('ins').each(function(idx){▼
}
console.log($(this).text());▼
// segments = text.split('<ins class="diffchange diffchange-inline">');
});▼
▲ // segments.forEach(function(segment, index){
// console.log(segment);
▲ // });
▲ // $(paragraph).find('ins').each(function(idx){
▲ // });
}
|