Преглед на файлове

Fix incorrect escaping in regex pattern

bugfixin преди 6 години
родител
ревизия
da842d5a73
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs

+ 1 - 1
Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs

@@ -149,7 +149,7 @@ namespace Emby.Server.Implementations.Library
                 }
 
                 // Ignore samples
-                Match m = Regex.Match(filename,"\bsample\b",RegexOptions.IgnoreCase);
+                Match m = Regex.Match(filename,@"\bsample\b",RegexOptions.IgnoreCase);
 
                 return m.Success;
             }