This commit is contained in:
VnPower
2024-09-23 11:18:21 +07:00
parent 6bf7f53b5f
commit 48265616e4
+2 -2
View File
@@ -120,8 +120,8 @@ func GetNovelByID(r *http.Request, id string) (Novel, error) {
}
// Novel embedded illusts
re_r := regexp.MustCompile(`\[pixivimage:(\d+)\]`)
re_d := regexp.MustCompile(`\d+`)
re_r := regexp.MustCompile(`\[pixivimage:\d+(-\d+)?\]`)
re_d := regexp.MustCompile(`\d+(-\d+)?`)
re_t := regexp.MustCompile(`\"original\":\"(.+?)\"`)
novel.Content = re_r.ReplaceAllStringFunc(novel.Content, func(s string) string {