mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Rollback char.IsDigit
This commit is contained in:
parent
59641e5c76
commit
7685569480
1 changed files with 7 additions and 2 deletions
|
@ -38,7 +38,7 @@ namespace MediaBrowser.Common.Providers
|
|||
for (; i < Math.Min(text.Length, ImdbMaxNumbers); i++)
|
||||
{
|
||||
var c = text[i];
|
||||
if (!char.IsDigit(c))
|
||||
if (!IsDigit(c))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ namespace MediaBrowser.Common.Providers
|
|||
{
|
||||
var c = text[i];
|
||||
|
||||
if (!char.IsDigit(c))
|
||||
if (!IsDigit(c))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
@ -116,5 +116,10 @@ namespace MediaBrowser.Common.Providers
|
|||
providerId = default;
|
||||
return false;
|
||||
}
|
||||
|
||||
private static bool IsDigit(char c)
|
||||
{
|
||||
return c >= '0' && c <= '9';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue