From 00d2894c047adba56bfc5e7d83a0cd14c7505124 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 24 May 2020 20:46:35 +1200 Subject: [PATCH] fix slash escaping in regex string literal --- shunt_tags | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shunt_tags b/shunt_tags index 62fb39b..54b39f2 100755 --- a/shunt_tags +++ b/shunt_tags @@ -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; }