Skip to content

The Free Software Media System - Server Backend & API

Fix incorrect escaping in regex pattern

bugfixinda842d5a730e
diff --git a/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
index c9d4e43422..a70077163e 100644
--- a/Emby.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
+++ b/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;
}