no message

Former-commit-id: 7062d975e7686d86a1a1efde8a1121a0fe6ca644
Former-commit-id: 0ebf62d657d331b49da079fd9caee8c140c53e0a
Former-commit-id: 10888f615f44fc4db1b9097bb9e2e729857f6c3b
This commit is contained in:
李杨
2018-02-24 18:28:44 +08:00
parent 898afd2f55
commit 7bb54e3de7

View File

@@ -14,7 +14,15 @@ export default (quote) => {
} else if (bdShareUrlPwd.test(_quote)) {
const url = _quote.match(/https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+/i)
const pwd = _quote.match(/[a-z0-9]{4}$/i)
return `<div style="color: blue;">${url[0]} - ${pwd[0]}</div>`
return `<div class="baidupan">
<a href="${_quote}" class="container">
<div class="icon">
<img src="/static/image/baidu-pan-logo.png">
</div>
<div class="url">${url[0]}</div>
<div class="pwd">${pwd[0]}</div>
</a>
</div>`
} else {
return false
}