diff --git a/cat/js/cat.js b/cat/js/cat.js index 978dc93..08513ed 100644 --- a/cat/js/cat.js +++ b/cat/js/cat.js @@ -98,7 +98,7 @@ function renderFragment(fragment, number) { // source segment var sourceSegment = occurence['sourceSegment']; - result += sourceSegment.slice(0, ['matchedExampleStart']); + result += sourceSegment.slice(0, occurence['matchedExampleStart']); result += ''; result += sourceSegment.slice(occurence['matchedExampleStart'], occurence['matchedExampleEnd']); result += '';