diff --git a/src/disqus.js b/src/disqus.js index 12eb04a..37829f4 100644 --- a/src/disqus.js +++ b/src/disqus.js @@ -417,7 +417,7 @@ function DisqusJS(config) { let removeDisqUs = (msg) => { // aMatcher - 只处理 Disqus 短链接 var aMatcher = new RegExp(/<a.+?href=\"https:\/\/disq.us(.+?)\".*>/gi), - hrefMatcher = new RegExp(/href=\"(?<href>[^\"]*)\"/gi) + hrefMatcher = new RegExp(/href=\"(.+?)\"/gi) let link = (msg.match(aMatcher) || []) link.map((link) => { // (.*) 是贪婪处理,会一致匹配到最后,可以用于匹配最后一次