提交 27cb8041 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 bce3bcc5
......@@ -44,7 +44,7 @@ export default {
html() {
if (this.detail.contents) {
return this.detail.contents
.replace(/---------- start ----------\n/gi, '')
.replace(/---------- start ----------[\n]{0,1}/gi, '')
.replace(/---------- end ----------/gi, '')
.replace(/\n/g, '<br/>')
}
......
......@@ -48,7 +48,7 @@ export default {
html() {
if (this.data.contents) {
return this.data.contents
.replace(/---------- start ----------\n/gi, '')
.replace(/---------- start ----------[\n]{0,1}/gi, '')
.replace(/---------- end ----------/gi, '')
.replace(/\n/g, '<br/>')
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论