Skip to content

Commit

Permalink
fix(route/udn): Optimize for udn Global (#16948)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Sep 27, 2024
1 parent 0211583 commit 1b51ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/routes/udn/breaking-news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ async function handler(ctx) {

if (data.publisher.name === '轉角國際 udn Global') {
// 轉角24小時
description += $('.story_body_content')
description = $('.story_body_content')
.html()
.split(/<!--\d+?-->/g)
.slice(1, -1)
.join(',');
.join('');
}

return {
Expand Down

0 comments on commit 1b51ced

Please sign in to comment.