From 0e2e0f7eea4a3cbde4401f356ae7a41c1e5785ca Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 16 Feb 2018 13:15:20 -0800 Subject: [PATCH] Do a case-insensitive match when checking for special-case feed URLs. --- Frameworks/RSParser/Feeds/JSON/JSONFeedParser.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Frameworks/RSParser/Feeds/JSON/JSONFeedParser.swift b/Frameworks/RSParser/Feeds/JSON/JSONFeedParser.swift index c646c3ffe..166898af4 100644 --- a/Frameworks/RSParser/Feeds/JSON/JSONFeedParser.swift +++ b/Frameworks/RSParser/Feeds/JSON/JSONFeedParser.swift @@ -170,9 +170,10 @@ private extension JSONFeedParser { // As of 16 Feb. 2018, Kottke’s and Heer’s feeds includes HTML entities in the title elements. // If we find more feeds like this, we’ll add them here. If these feeds get fixed, we’ll remove them. + let lowerFeedURL = feedURL.lowercased() let matchStrings = ["kottke.org", "pxlnv.com"] for matchString in matchStrings { - if feedURL.contains(matchString) { + if lowerFeedURL.contains(matchString) { return true } }