mirror of
http://112.124.100.131/ebiz-ai/ebiz-base-ai.git
synced 2025-12-09 19:06:50 +08:00
feat: 优化打字机的显示效果
This commit is contained in:
@@ -96,8 +96,8 @@ export default {
|
|||||||
text = text.replace(/^<\w+>/g, '')
|
text = text.replace(/^<\w+>/g, '')
|
||||||
// 尝试把 </ 标签去除
|
// 尝试把 </ 标签去除
|
||||||
// text = text.replace(/[</]+$/g, '')
|
// text = text.replace(/[</]+$/g, '')
|
||||||
text = text.replace(/<[^>]*>/g, '')
|
// <\/?([\w\s]+)?(?!>)$
|
||||||
// console.log(text);
|
text = text.replace(/<\/?([\w\s='"]+)?(?!>)$/g, '')
|
||||||
|
|
||||||
|
|
||||||
return text
|
return text
|
||||||
|
|||||||
Reference in New Issue
Block a user