From 43934f2153990457e010f4c4a786eb4c9123df88 Mon Sep 17 00:00:00 2001 From: Il Harper Date: Fri, 16 Oct 2020 23:04:31 +0800 Subject: [PATCH] fix(rss): remove url.toLowerCase() (#113) --- packages/plugin-rss/src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/plugin-rss/src/index.ts b/packages/plugin-rss/src/index.ts index ec54c9c1ae..d9214acdee 100644 --- a/packages/plugin-rss/src/index.ts +++ b/packages/plugin-rss/src/index.ts @@ -66,7 +66,7 @@ export function apply(ctx: Context, config: Config = {}) { feeder.on('new-item', async (payload) => { logger.debug('receive', payload.title) - const source = payload.meta.link.toLowerCase() + const source = payload.meta.link if (!feedMap[source]) return const message = `${payload.meta.title} (${payload.author})\n${payload.title}` await ctx.broadcast([...feedMap[source]], message) @@ -106,7 +106,6 @@ export function apply(ctx: Context, config: Config = {}) { return rss.join('\n') } - url = url.toLowerCase() const index = rss.indexOf(url) if (options.remove) {