fix slash escaping in regex string literal
This commit is contained in:
parent
37a43ff778
commit
00d2894c04
@ -504,7 +504,7 @@ function findFilesNeedingReplacement($basedir, $recursive, $quiet) {
|
||||
|
||||
$fname = $file->getFilename();
|
||||
|
||||
if (! preg_match("~\.(?:mkv|mp4|avi|ogm|ogv)$~", $fname)) {
|
||||
if (! preg_match("~\\.(?:mkv|mp4|avi|ogm|ogv)$~", $fname)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user