aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteItemRepository.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-06-12 08:08:46 +0200
committerGitHub <noreply@github.com>2021-06-12 08:08:46 +0200
commit93dbbfea03612e5b0321c31b80207a00a1691619 (patch)
tree8d56442d90817747842d8dd0c6f709dbc04f96d5 /Emby.Server.Implementations/Data/SqliteItemRepository.cs
parent83e492b72bbb7ac685be17ac546af30a62dbb7f5 (diff)
parent5fb72951a0cccc27fb324e555735dc48b3b2beca (diff)
Merge pull request #6173 from Bond-009/tests5
Add test for ReadOnlySpan.Count extension
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteItemRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteItemRepository.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index 3ae28fadf..9b147b5d7 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -1048,7 +1048,7 @@ namespace Emby.Server.Implementations.Data
// TODO The following is an ugly performance optimization, but it's extremely unlikely that the data in the database would be malformed
var valueSpan = value.AsSpan();
- var count = valueSpan.CountOccurrences('|') + 1;
+ var count = valueSpan.Count('|') + 1;
var position = 0;
var result = new ItemImageInfo[count];