koishi-plugin-cat-raising 0.3.0 → 0.3.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.
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -74,7 +74,7 @@ __name(preprocessChineseNumerals, "preprocessChineseNumerals");
|
|
|
74
74
|
function extractAllRoomIds(text) {
|
|
75
75
|
const sanitizedText = text.replace(/<[^>]+>/g, "");
|
|
76
76
|
const patterns = [
|
|
77
|
-
/(?:播间号|房间号|直播间)[::\s]*(\d{
|
|
77
|
+
/(?:播间号|房间号|直播间)[::\s]*(\d{3,15})/g,
|
|
78
78
|
/\b(\d{6,15})\b/g
|
|
79
79
|
// 使用单词边界确保匹配的是独立数字
|
|
80
80
|
];
|