From 29713ec7d6a8284909849459b9353cf108ffcaa1 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Tue, 7 Feb 2023 13:43:18 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dexcerpt=E4=B8=8D=E8=B5=B7?= =?UTF-8?q?=E4=BD=9C=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Setup.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Setup.ts b/src/Setup.ts index cc66384..6c54812 100644 --- a/src/Setup.ts +++ b/src/Setup.ts @@ -10,8 +10,9 @@ export class Setup { let maxLength: any = parseInt(args[1]); let ellipsis: any = undefined; if (args.length > 3) { - return Utils.excerpt(text, parseInt(maxLength), ellipsis); + ellipsis = args[2]; } + return Utils.excerpt(text, parseInt(maxLength), ellipsis); } return args[0]; });