feat(deploy_ali_cdn): improve upper-case

This commit is contained in:
PMExtra 2024-07-11 18:41:39 +08:00
parent 3c35eadbc4
commit 945b7de76f

View File

@ -131,7 +131,7 @@ _url_encode_upper() {
encoded=$(_url_encode)
for match in $(echo "$encoded" | _egrep_o '%..' | sort -u); do
upper=$(echo "$match" | tr '[:lower:]' '[:upper:]')
upper=$(echo "$match" | _upper_case)
encoded=$(echo "$encoded" | sed "s/$match/$upper/g")
done