mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-09-13 13:58:20 -04:00
15 lines
431 B
C#
15 lines
431 B
C#
namespace Cleanuparr.Domain.Helpers;
|
|
|
|
/// <summary>
|
|
/// The canonical form of a torrent hash.
|
|
/// The *arr apps and the download clients disagree on casing.
|
|
/// Everything we store and compare is lowercase.
|
|
/// </summary>
|
|
public static class DownloadHash
|
|
{
|
|
/// <summary>
|
|
/// Returns the canonical, lowercase form of a hash.
|
|
/// </summary>
|
|
public static string Normalize(string value) => value.ToLowerInvariant();
|
|
}
|