From f5bf0a48f36f70c1267b61a9553254344e6e1b4c Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Fri, 10 Mar 2023 12:34:21 -0500 Subject: [PATCH] uptobox: fix improper regex --- backend/uptobox/uptobox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/uptobox/uptobox.go b/backend/uptobox/uptobox.go index c13d0ac9e..ad827377b 100644 --- a/backend/uptobox/uptobox.go +++ b/backend/uptobox/uptobox.go @@ -214,7 +214,7 @@ func NewFs(ctx context.Context, name string, root string, config configmap.Mappe client := fshttp.NewClient(ctx) f.srv = rest.NewClient(client).SetRoot(apiBaseURL) - f.IDRegexp = regexp.MustCompile(`https://uptobox\.com/([a-zA-Z0-9]+)`) + f.IDRegexp = regexp.MustCompile(`^https://uptobox\.com/([a-zA-Z0-9]+)`) _, err = f.readMetaDataForPath(ctx, f.dirPath(""), &api.MetadataRequestOptions{Limit: 10}) if err != nil {