This commit is contained in:
parent
c946b9daba
commit
6dc8abd6b3
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -96,7 +96,7 @@ func process(_ context.Context, w gemini.ResponseWriter, r *gemini.Request) {
|
|||
renderSearch(lang, w, r, client)
|
||||
case regexp.MustCompile(`^/(sgs|en)/f/?$`).MatchString(r.URL.Path):
|
||||
renderAllFiles(lang, w, client)
|
||||
case regexp.MustCompile(`^/(sgs|en)/f/([\p{L}\d_+.]+/)+[\d\w]+/[\w_]+.gmi$`).MatchString(r.URL.Path):
|
||||
case regexp.MustCompile(`^/(sgs|en)/f/([\p{L}\d_+.]+/)+[\d\w]+/[\p{L}\d_+.]+.gmi$`).MatchString(r.URL.Path):
|
||||
renderFile(lang, w, r, client)
|
||||
case regexp.MustCompile(`^/(sgs|en)/f/[\p{L}\d_+.]+(/[\p{L}\d_+.]+)*/?$`).MatchString(r.URL.Path):
|
||||
renderCategory(lang, w, r, client)
|
||||
|
|
Loading…
Reference in a new issue