translate backslashes into forward slashes, fixes dirname() issue on windows
This commit is contained in:
parent
66f5083e3b
commit
ab3af9244a
|
@ -60,6 +60,7 @@ class ComicPressMediaHandling {
|
|||
|
||||
function _resolve_regex_path($input) {
|
||||
$input = str_replace('\.', '.', $input);
|
||||
$input = str_replace('\\', '/', $input);
|
||||
return $input;
|
||||
}
|
||||
|
||||
|
|
|
@ -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'),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue