mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): line today regex (#19828)
This commit is contained in:
@@ -18,7 +18,7 @@ const parseItems = (list) =>
|
||||
Promise.all(
|
||||
list.map((item) =>
|
||||
cache.tryGet(item.link, async () => {
|
||||
const edition = item.link.match(/today\.line\.me\/(\w+?)\/v2\/.*$/)[1];
|
||||
const edition = item.link.match(/today\.line\.me\/(\w+?)\/v[23]\/.*$/)[1];
|
||||
let data;
|
||||
try {
|
||||
const response = await got(`${baseUrl}/webapi/portal/page/setting/article`, {
|
||||
|
||||
Reference in New Issue
Block a user