From 051737e9316beac3a3fde84bb7e01c0a1938a9b7 Mon Sep 17 00:00:00 2001 From: JustAMacUser Date: Tue, 24 Jan 2017 15:06:46 -0500 Subject: [PATCH] Support hyphens in GoComics URLs. --- plugins/af_comics/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php index 38ef82fd..31994176 100644 --- a/plugins/af_comics/init.php +++ b/plugins/af_comics/init.php @@ -79,7 +79,7 @@ class Af_Comics extends Plugin { if ($auth_login || $auth_pass) return $feed_data; - if (preg_match('#^https?://feeds.feedburner.com/uclick/([a-z]+)#', $fetch_url, $comic)) { + if (preg_match('#^https?://feeds.feedburner.com/uclick/([-a-z]+)#', $fetch_url, $comic)) { $site_url = 'http://www.gocomics.com/' . $comic[1]; $article_link = $site_url . date('/Y/m/d'); -- 2.39.5