From 0ed6bf41be126e8a4f274de06545dbf4f3f883c2 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 22 Oct 2022 22:51:50 +0300 Subject: feat: support syntax highlighting --- src/lib/nginxAdapter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/nginxAdapter.ts') diff --git a/src/lib/nginxAdapter.ts b/src/lib/nginxAdapter.ts index fdadd87..be39022 100644 --- a/src/lib/nginxAdapter.ts +++ b/src/lib/nginxAdapter.ts @@ -41,9 +41,9 @@ const nginxAdapter: Adapter = { return markdownSource; }, - async getEmojiFileNames(cdn) { + async getEmojiFileNames(cdn, emojiRootPath) { const urls = await memoizedDeepListNginxDirectory(cdn); - return _.compact(urls.map((s: string) => s.match(/emoji\/(.*)/)?.[1])); + return _.compact(urls.map((s: string) => s.match(`${emojiRootPath}\/(.*)`)?.[1])); }, } -- cgit v1.2.3