From e4a88ff306cf5f4792b95d78e7abfe0d99a7d02e Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Thu, 3 Mar 2022 22:16:16 -0600 Subject: [PATCH] feat(markup.ts) merge higharcs changes --- src/handler/utilities/markup.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/handler/utilities/markup.ts b/src/handler/utilities/markup.ts index 9beed01..9d13be5 100644 --- a/src/handler/utilities/markup.ts +++ b/src/handler/utilities/markup.ts @@ -7,7 +7,7 @@ TIME_LONG = 'T', TIME_SHORT = 't' } - export function trueSlice(text: string, limit?: number): string { + export function trueSlice(text: string, limit?: number): string if (limit) { return new TextDecoder().decode( new TextEncoder().encode(text).slice(0, limit) @@ -26,7 +26,7 @@ STRIKE: '~~', UNDERLINE: '__' }; - export const Regexes = { + export const Regexes = { [Strings.BOLD]: /\*\*/g, [Strings.CODEBLOCK]: new RegExp(Strings.CODEBLOCK, 'g'), [Strings.CODESTRING]: new RegExp(Strings.CODESTRING, 'g'), @@ -559,3 +559,5 @@ return new this(raw).url(); } } + +{