aboutsummaryrefslogtreecommitdiff
path: root/src/lib/nginxAdapter.ts
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-10-22 22:51:50 +0300
committereug-vs <eugene@eug-vs.xyz>2022-10-22 22:51:50 +0300
commit0ed6bf41be126e8a4f274de06545dbf4f3f883c2 (patch)
tree879eab5d2faf28f42ed30bc012a90c58229b55b9 /src/lib/nginxAdapter.ts
parent31b71bc0dc377b6a3f578188f2d3ee25cfe2e935 (diff)
downloadbenzin-next-0ed6bf41be126e8a4f274de06545dbf4f3f883c2.tar.gz
feat: support syntax highlighting
Diffstat (limited to 'src/lib/nginxAdapter.ts')
-rw-r--r--src/lib/nginxAdapter.ts4
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]));
},
}