diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-06-12 00:56:09 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-06-12 00:56:09 +0200 |
| commit | 5fb72951a0cccc27fb324e555735dc48b3b2beca (patch) | |
| tree | 798355ac9189973ef7e8da7723361f99ad5bb6d2 /Emby.Server.Implementations/Data/SqliteItemRepository.cs | |
| parent | cfad97ff28339088ab86c40661bb407024285a7c (diff) | |
Add test for ReadOnlySpan.Count extension
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteItemRepository.cs')
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteItemRepository.cs | 2 |
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]; |
