mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-22 21:50:36 +02:00
Fix new test
This commit is contained in:
parent
58f788e8ab
commit
a04f8f5efb
|
@ -40,7 +40,8 @@ namespace Emby.Server.Implementations.Library
|
||||||
&& str[attributeEnd] == '=')
|
&& str[attributeEnd] == '=')
|
||||||
{
|
{
|
||||||
var closingIndex = str[attributeEnd..].IndexOf(']');
|
var closingIndex = str[attributeEnd..].IndexOf(']');
|
||||||
if (closingIndex != -1)
|
// Must be at least 1 character before the closing bracket.
|
||||||
|
if (closingIndex > 1)
|
||||||
{
|
{
|
||||||
return str[(attributeEnd + 1)..(attributeEnd + closingIndex)].Trim().ToString();
|
return str[(attributeEnd + 1)..(attributeEnd + closingIndex)].Trim().ToString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue