Просмотр исходного кода

Fix incorrect escaping in regex pattern

bugfixin 6 лет назад
Родитель
Сommit
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;
             }