We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4a7016 commit 82798b2Copy full SHA for 82798b2
utils.go
@@ -80,8 +80,8 @@ func base64urldecode(s string) ([]byte, error) {
80
enc := base64.RawURLEncoding
81
// mega base64 decoder accepts the characters from both URLEncoding and StdEncoding
82
// though nearly all strings are URL encoded
83
- s = strings.Replace(s, "+", "-", -1)
84
- s = strings.Replace(s, "/", "_", -1)
+ s = strings.ReplaceAll(s, "+", "-")
+ s = strings.ReplaceAll(s, "/", "_")
85
return enc.DecodeString(s)
86
}
87
0 commit comments