fix(route/udn): Support udn Global. (#16085)

This commit is contained in:
Andvari
2024-07-04 23:25:22 +08:00
committed by GitHub
parent ddad7340d2
commit 0e355fe81f
+9
View File
@@ -85,6 +85,15 @@ async function handler(ctx) {
description += body.html();
}
if (data.publisher.name === '轉角國際 udn Global') {
// 轉角24小時
description += $('.story_body_content')
.html()
.split(/<!--\d+?-->/g)
.slice(1, -1)
.join(',');
}
return {
title: item.title,
author: data.author.name,