mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-09-27 05:19:04 +02:00
chore(deps): update Go to v1.27.0
This commit is contained in:
@@ -49,8 +49,8 @@ func validateCallbackURLPatternURL(pattern string) error {
|
||||
}
|
||||
|
||||
func callbackURLPatternForURLParse(pattern string) string {
|
||||
if strings.HasPrefix(pattern, "*://") {
|
||||
pattern = "https://" + strings.TrimPrefix(pattern, "*://")
|
||||
if after, ok := strings.CutPrefix(pattern, "*://"); ok {
|
||||
pattern = "https://" + after
|
||||
}
|
||||
|
||||
scheme, rest, ok := strings.Cut(pattern, "://")
|
||||
|
||||
Reference in New Issue
Block a user