File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,10 @@ func ValidateFolderURL(url string) (string, error) {
3636}
3737
3838func ValidateWikiURL (url string ) (string , string , error ) {
39- // reg := regexp.MustCompile("^https://[\\w-.]+/wiki/settings/([a-zA-Z0-9]+)")
40- reg := regexp .MustCompile (`^(https://[\w-.]+)/wiki/settings/([a-zA-Z0-9]+)$` )
39+ reg := regexp .MustCompile (`^(https://[\w-.]+)/wiki/space/([a-zA-Z0-9]+)$` )
4140 matchResult := reg .FindStringSubmatch (url )
4241 if matchResult == nil || len (matchResult ) != 3 {
43- return "" , "" , errors .Errorf ("Invalid feishu/larksuite folder URL pattern" )
42+ return "" , "" , errors .Errorf ("Invalid feishu/larksuite wiki URL pattern" )
4443 }
4544 prefixURL := matchResult [1 ]
4645 wikiToken := matchResult [2 ]
You can’t perform that action at this time.
0 commit comments