修复excerpt不起作用的问题

main
落雨楓 2 years ago
parent 961b9bc86c
commit 29713ec7d6

@ -10,8 +10,9 @@ export class Setup {
let maxLength: any = parseInt(args[1]); let maxLength: any = parseInt(args[1]);
let ellipsis: any = undefined; let ellipsis: any = undefined;
if (args.length > 3) { if (args.length > 3) {
return Utils.excerpt(text, parseInt(maxLength), ellipsis); ellipsis = args[2];
} }
return Utils.excerpt(text, parseInt(maxLength), ellipsis);
} }
return args[0]; return args[0];
}); });

Loading…
Cancel
Save