diff --git a/classes/ComicPressMediaHandling.inc b/classes/ComicPressMediaHandling.inc index 31f7e7d..e38edeb 100644 --- a/classes/ComicPressMediaHandling.inc +++ b/classes/ComicPressMediaHandling.inc @@ -60,6 +60,7 @@ class ComicPressMediaHandling { function _resolve_regex_path($input) { $input = str_replace('\.', '.', $input); + $input = str_replace('\\', '/', $input); return $input; } diff --git a/test/ComicPressMediaHandlingTest.php b/test/ComicPressMediaHandlingTest.php index d36181e..c519fc4 100644 --- a/test/ComicPressMediaHandlingTest.php +++ b/test/ComicPressMediaHandlingTest.php @@ -144,7 +144,8 @@ class ComicPressMediaHandlingTest extends PHPUnit_Framework_TestCase { function providerTestResolveRegexPath() { return array( array('test', 'test'), - array('te\.st', 'te.st') + array('te\.st', 'te.st'), + array('te\st', 'te/st'), ); }