fix slash escaping in regex string literal

This commit is contained in:
mappu 2020-05-24 20:46:35 +12:00
parent 37a43ff778
commit 00d2894c04

View File

@ -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;
}