mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-10-05 11:38:29 +00:00
format_hash(): format hashes to lowercase
This commit is contained in:
1 parent
88040972a3
commit
5d56f8ff57
1 file changed
+1
@@ -560,6 +560,7 @@ function substitute($entity, [Hashtable] $params) {
|
||||
}
|
||||
|
||||
function format_hash([String] $hash) {
|
||||
$hash = $hash.toLower()
|
||||
switch ($hash.Length)
|
||||
{
|
||||
32 { $hash = "md5:$hash" } # md5
|
||||
|
||||
Reference in new issue
Block a user