mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Move former Sanitizer methods to better places
This commit is contained in:
@@ -38,31 +38,12 @@ namespace RombaSharp.Features
|
||||
List<string> sha1 = new List<string>();
|
||||
foreach (string input in Inputs)
|
||||
{
|
||||
string temp = string.Empty;
|
||||
if (input.Length == Constants.CRCLength)
|
||||
{
|
||||
temp = Sanitizer.CleanCRC32(input);
|
||||
if (!string.IsNullOrWhiteSpace(temp))
|
||||
{
|
||||
crc.Add(temp);
|
||||
}
|
||||
}
|
||||
crc.Add(input);
|
||||
else if (input.Length == Constants.MD5Length)
|
||||
{
|
||||
temp = Sanitizer.CleanMD5(input);
|
||||
if (!string.IsNullOrWhiteSpace(temp))
|
||||
{
|
||||
md5.Add(temp);
|
||||
}
|
||||
}
|
||||
md5.Add(input);
|
||||
else if (input.Length == Constants.SHA1Length)
|
||||
{
|
||||
temp = Sanitizer.CleanSHA1(input);
|
||||
if (!string.IsNullOrWhiteSpace(temp))
|
||||
{
|
||||
sha1.Add(temp);
|
||||
}
|
||||
}
|
||||
sha1.Add(input);
|
||||
}
|
||||
|
||||
SqliteConnection dbc = new SqliteConnection(_connectionString);
|
||||
|
||||
Reference in New Issue
Block a user