Commit 5ea97ecf authored by Hsinli's avatar Hsinli

fix avatar

parent 69307141
Pipeline #6293 passed with stage
in 7 seconds
...@@ -67,7 +67,7 @@ class MineService extends Service { ...@@ -67,7 +67,7 @@ class MineService extends Service {
if (ret.avatar && ret.avatar.indexOf('http') === -1) { if (ret.avatar && ret.avatar.indexOf('http') === -1) {
ret.avatar = this.config.CDN_BASE_URL + ret.avatar; ret.avatar = this.config.CDN_BASE_URL + ret.avatar;
} }
ret.avatar.replace(/^(?=^.{3,255}$)(http(s)?:\/\/)?(www\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\d+)*(\/\w+\.\w+)*/i, 'https://r.51gjj.com'); ret.avatar = ret.avatar.replace(/^(?=^.{3,255}$)(http(s)?:\/\/)?(www\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\d+)*(\/\w+\.\w+)*/i, 'https://r.51gjj.com');
return ret; return ret;
} }
......
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