Skip to content

Commit

Permalink
refactor(command.utils): improve readability and maintainability
Browse files Browse the repository at this point in the history
Signed-off-by: Rongrong <[email protected]>
  • Loading branch information
Rongronggg9 committed Jul 28, 2024
1 parent 43454e5 commit 31e78a9
Show file tree
Hide file tree
Showing 3 changed files with 410 additions and 231 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Enhancements

- **Sanitize post title and author**: The title and author of a post (RSS item or Atom entry) are now sanitized to prevent unexpected formatting issues. In particular, unexpected whitespaces and linebreaks are removed, and any HTML elements are stripped. This helps display them correctly in Telegram messages as well as Telegraph posts.
- **Minor refactor**: Some internal functions have been refactored to improve readability and maintainability.

### Bug fixes

Expand Down
1 change: 1 addition & 0 deletions docs/CHANGELOG.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### 增强

- **净化文章标题和作者**: 文章 (RSS item 或 Atom entry) 的标题和作者现在被净化以防止意外的格式问题。特别是,预期外的空格和换行符被移除,任何 HTML 元素都被剥离。这有助于在 Telegram 消息以及 Telegraph 文章中正确显示它们。
- **次要的重构**: 重构了一些内部函数以提高可读性和可维护性。

### Bug 修复

Expand Down
Loading

0 comments on commit 31e78a9

Please sign in to comment.