Do a case-insensitive match when checking for special-case feed URLs.

This commit is contained in:
Brent Simmons 2018-02-16 13:15:20 -08:00
parent 891416e7b7
commit 0e2e0f7eea

View File

@ -170,9 +170,10 @@ private extension JSONFeedParser {
// As of 16 Feb. 2018, Kottkes and Heers feeds includes HTML entities in the title elements. // As of 16 Feb. 2018, Kottkes and Heers feeds includes HTML entities in the title elements.
// If we find more feeds like this, well add them here. If these feeds get fixed, well remove them. // If we find more feeds like this, well add them here. If these feeds get fixed, well remove them.
let lowerFeedURL = feedURL.lowercased()
let matchStrings = ["kottke.org", "pxlnv.com"] let matchStrings = ["kottke.org", "pxlnv.com"]
for matchString in matchStrings { for matchString in matchStrings {
if feedURL.contains(matchString) { if lowerFeedURL.contains(matchString) {
return true return true
} }
} }