|
|
@@ -51,7 +51,7 @@ export function formatRefferenceFlag(answer) {
|
|
|
|
|
|
let cur_text = answer;
|
|
|
|
|
|
- cur_text = cur_text.replace(/##\d\$\$/g, function (match, index, full) {
|
|
|
+ cur_text = cur_text.replace(/##\d{1,}\$\$/g, function (match, index, full) {
|
|
|
// console.log(match, index, full);
|
|
|
// match示例数据 ##1$$ ##2$$
|
|
|
// 通过两次替换,字符串只剩下序号
|