Skip to content

Commit bda7f32

Browse files
committed
修复正则匹配bug
1 parent 4b12c3f commit bda7f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/Detail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default {
111111
handleDetail () {
112112
let res = this.info.articleContentHtml
113113
if (!res) return false
114-
const aReg = /<a.*href="(.*)">(.*?)<\/a>/gi
114+
const aReg = /<a.*?href="(.*?)">(.*?)<\/a>/gi
115115
let regArray
116116
const aArray = []
117117
while ((regArray = aReg.exec(res)) !== null) {

0 commit comments

Comments
 (0)