js correction

This commit is contained in:
Rafał Jaworski 2017-04-26 13:53:51 +02:00
parent a617a6b8ae
commit 498b914c13

View File

@ -98,7 +98,7 @@ function renderFragment(fragment, number) {
// source segment // source segment
var sourceSegment = occurence['sourceSegment']; var sourceSegment = occurence['sourceSegment'];
result += sourceSegment.slice(0, ['matchedExampleStart']); result += sourceSegment.slice(0, occurence['matchedExampleStart']);
result += '<span class="matchedFragment">'; result += '<span class="matchedFragment">';
result += sourceSegment.slice(occurence['matchedExampleStart'], occurence['matchedExampleEnd']); result += sourceSegment.slice(occurence['matchedExampleStart'], occurence['matchedExampleEnd']);
result += '</span>'; result += '</span>';