getUrl(str) {
const reg = /(https?|http|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/g;
const strValue = str.match(reg);
if (strValue && strValue.length > 0) {
return strValue[0];
}
return null;
},