var url_replacer = function (str) {
let match = str.match(/((https?|ftp|file)://[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|])/ig);
let final = str;
if (match) { /// if nulled
match.map(url => {
final = final.replace(url, "<a href="" + url + "" target="_BLANK">" + url + "</a>");
});
return final;
}else{
return str;
}
};