From daa6f6fcd20fe98b2241983a8d5cbf8bafb8b1f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Gon=C3=A7alves?= Date: Thu, 21 Jul 2016 13:35:32 +0200 Subject: [PATCH] Regex case insensitive --- src/jonag/Episodes/Helper/EpisodeHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jonag/Episodes/Helper/EpisodeHelper.php b/src/jonag/Episodes/Helper/EpisodeHelper.php index 95713ae..9a29b97 100644 --- a/src/jonag/Episodes/Helper/EpisodeHelper.php +++ b/src/jonag/Episodes/Helper/EpisodeHelper.php @@ -5,7 +5,7 @@ class EpisodeHelper { - const PATTERN = '/^(.+)[\.|\s]S?([0-9]+)[Ex]([0-9]+)(?:\-?[Ex]?[0-9]+)*?[\.|\s][^\[]+[^\.]([\.|\s]?\[.+\])?$/'; + const PATTERN = '/^(.+)[\.|\s]S?([0-9]+)[Ex]([0-9]+)(?:\-?[Ex]?[0-9]+)*?[\.|\s][^\[]+[^\.]([\.|\s]?\[.+\])?$/i'; private $showName; private $season;