fix(v2): hide read more button on non-truncated posts (#2240)

* fix(v2): hide read more button on non-truncated posts

* Update tests
This commit is contained in:
Alexey Pyltsyn 2020-01-24 08:31:07 +03:00 committed by Yangshun Tay
parent 894dbcff49
commit 5121ac013c
6 changed files with 12 additions and 7 deletions

View file

@ -12,7 +12,7 @@ import {truncate} from './blogUtils';
export = function(fileString: string) {
const callback = this.async();
const {truncateMarker}: {truncateMarker: RegExp | string} = getOptions(this);
const {truncateMarker}: {truncateMarker: RegExp} = getOptions(this);
let finalContent = fileString;