diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-10-22 22:51:50 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-10-22 22:51:50 +0300 |
commit | 0ed6bf41be126e8a4f274de06545dbf4f3f883c2 (patch) | |
tree | 879eab5d2faf28f42ed30bc012a90c58229b55b9 /src/lib/nginxAdapter.ts | |
parent | 31b71bc0dc377b6a3f578188f2d3ee25cfe2e935 (diff) | |
download | benzin-next-0ed6bf41be126e8a4f274de06545dbf4f3f883c2.tar.gz |
feat: support syntax highlighting
Diffstat (limited to 'src/lib/nginxAdapter.ts')
-rw-r--r-- | src/lib/nginxAdapter.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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])); }, } |