mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Fix #109
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user