(str: string)
| 17 | }; |
| 18 | |
| 19 | export const replaceStr = (str: string) => { |
| 20 | return str.replace(/\[\[(\d+)\]\]/g, (match: any, number: any) => { |
| 21 | // 创建一个带有class为'fnn2'的span元素,并将数字作为文本内容 |
| 22 | return `<i class='f'>${number}</i>`; |
| 23 | }); |
| 24 | }; |
no outgoing calls
no test coverage detected