diff --git a/lib/plugins/filter/after_post_render/excerpt.js b/lib/plugins/filter/after_post_render/excerpt.js index a33f44c6f2..d5705c09be 100644 --- a/lib/plugins/filter/after_post_render/excerpt.js +++ b/lib/plugins/filter/after_post_render/excerpt.js @@ -12,7 +12,7 @@ function excerptFilter(data) { data.excerpt = content.substring(0, index).trim(); data.more = content.substring(index + match.length).trim(); - return ''; + return ''; }); } else { data.excerpt = ''; diff --git a/test/scripts/filters/excerpt.js b/test/scripts/filters/excerpt.js index db5272121a..eb485221f5 100644 --- a/test/scripts/filters/excerpt.js +++ b/test/scripts/filters/excerpt.js @@ -49,7 +49,7 @@ describe('Excerpt', () => { data.content.should.eql([ 'foo', 'bar', - '', + '', 'baz' ].join('\n')); @@ -81,7 +81,7 @@ describe('Excerpt', () => { data.content.should.eql([ 'foo', - '', + '', 'bar', '', 'baz'