diff options
| author | randrey <randrey-gh@outlook.com> | 2020-04-19 14:14:04 -0700 |
|---|---|---|
| committer | randrey <randrey-gh@outlook.com> | 2020-04-19 14:14:04 -0700 |
| commit | d30fd3b3d2e935f865e7560629d72e87cb0c760d (patch) | |
| tree | 3ed576a3ca3d37905c0978cd04bd60daed37eebd /Emby.Server.Implementations/Library/PathExtensions.cs | |
| parent | 92f273cb0cd94923be25b6b69147eeb9b86749b0 (diff) | |
Changed '\d' to '[0-9]'.
Diffstat (limited to 'Emby.Server.Implementations/Library/PathExtensions.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/PathExtensions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/PathExtensions.cs b/Emby.Server.Implementations/Library/PathExtensions.cs index 67c0e4eae..1d61ed57e 100644 --- a/Emby.Server.Implementations/Library/PathExtensions.cs +++ b/Emby.Server.Implementations/Library/PathExtensions.cs @@ -39,7 +39,7 @@ namespace Emby.Server.Implementations.Library // for imdbid we also accept pattern matching if (string.Equals(attrib, "imdbid", StringComparison.OrdinalIgnoreCase)) { - var m = Regex.Match(str, "tt\\d{7,8}", RegexOptions.IgnoreCase); + var m = Regex.Match(str, "tt([0-9]{7,8})", RegexOptions.IgnoreCase); return m.Success ? m.Value : null; } |
