Commit 6c37aae5 authored by linwenqing's avatar linwenqing

revert:撤销消息通知匹配图片修改

parent f8c7a0db
......@@ -577,8 +577,14 @@ export default {
},
//取文本第一张图片
imgUrlFun(str) {
var data = /http[a-zA-z]+:\/\/[^\"]*/.exec(str);
return data?data[0]:'';
var data = "";
str.replace(
/<img [^>]*src=['"]([^'"]+)[^>]*>/,
function (match, capture) {
data = capture;
}
);
return data;
},
//取文本信息
getText(str) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment