mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-12-16 02:50:16 +00:00
⚡️ Improve
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
func DecodeBase64(s string) (string, error) {
|
||||
s = strings.TrimSpace(s)
|
||||
// url safe
|
||||
|
||||
if strings.Contains(s, "-") || strings.Contains(s, "_") {
|
||||
s = strings.Replace(s, "-", "+", -1)
|
||||
s = strings.Replace(s, "_", "/", -1)
|
||||
|
||||
Reference in New Issue
Block a user