diff options
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])); }, } |