additional windows fix for path handling
This commit is contained in:
parent
10130125b5
commit
3fb1081afc
|
@ -72,7 +72,7 @@ class ComicPressMediaHandling {
|
|||
|
||||
function _get_regex_filename($input) {
|
||||
$input = preg_replace('#\\\(?![.])#', '/', $input);
|
||||
return basename($input);
|
||||
return preg_replace('#^.*\/([^\/]+)$#', '$1', $input);
|
||||
}
|
||||
|
||||
function _resolve_regex_path($input) {
|
||||
|
|
|
@ -189,6 +189,7 @@ class ComicPressMediaHandlingTest extends PHPUnit_Framework_TestCase {
|
|||
array('c:\test\test2', 'test2'),
|
||||
array('/test/test2\.cat', 'test2\.cat'),
|
||||
array('c:\test\test2\.cat', 'test2\.cat'),
|
||||
array('C:/inetpub/a\.windows\.directory/comics/2009-11-24.*\..*', '2009-11-24.*\..*')
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue