koishi-plugin-cs2-update-log 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -48,6 +48,7 @@ const markdown = new markdown_it_1.default({
48
48
  const rssParser = new fast_xml_parser_1.XMLParser({
49
49
  ignoreAttributes: false,
50
50
  parseTagValue: false,
51
+ processEntities: false,
51
52
  trimValues: true,
52
53
  });
53
54
  const updateTitlePattern = /\b(?:Counter-Strike 2 Update|Release Notes)\b/i;
@@ -322,7 +323,7 @@ function classifyNews(item) {
322
323
  };
323
324
  }
324
325
  function parseRssItem(item) {
325
- const title = readXmlText(item.title);
326
+ const title = decodeHtmlEntities(readXmlText(item.title));
326
327
  const url = readXmlText(item.link);
327
328
  const guid = readXmlText(item.guid);
328
329
  const gid = extractNewsGid(guid) || extractNewsGid(url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-cs2-update-log",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Koishi plugin for monitoring CS2 official Steam announcements and update logs.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",