提交
This commit is contained in:
@@ -42,7 +42,7 @@ export default {
|
||||
str = capitalizeFirstLetter(str);
|
||||
|
||||
// 添加蓝色标签
|
||||
const regex = /\[\d+(?:,\d+)*\]/g;
|
||||
const regex = /\[(\d+(?:–\d+)?(?:,\d+(?:–\d+)?)*)\]/g;;
|
||||
if (regex.test(str)) {
|
||||
str = `<blue>${str}</blue>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user