Skip to content

Commit

Permalink
修改正则bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lanpangzhi committed Jun 18, 2018
1 parent a91db6c commit e0341f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Article.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {
},
toHtml(str) {
// eslint-disable-next-line
let re = new RegExp("([^\x00-\xff])+\n", "g");
let re = new RegExp("([^\n])+\n", "g");
return str.replace(re, $1 => {
return `<p>${$1}</p>`;
});
Expand Down

0 comments on commit e0341f5

Please sign in to comment.