no message
Former-commit-id: 2225640189e4909b549a4f37268dccafa93637af Former-commit-id: 9e62bbbe4a133c11e6fd353eaa464aef2a69c332 Former-commit-id: 56300c6fdfe9d5b0ace7b093878c88bfdf401c13
This commit is contained in:
@@ -3,7 +3,14 @@ export default (quote) => {
|
||||
const bdShareUrl = /^https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+$/i
|
||||
const bdShareUrlPwd = /^链接: https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+ 密码: [a-z0-9]{4}$/i
|
||||
if (bdShareUrl.test(_quote)) {
|
||||
return `<div style="color: red;">${_quote}</div>`
|
||||
return `<div class="baidupan">
|
||||
<div class="l">
|
||||
<img src="/static/image/baidu-pan-logo.png">
|
||||
</div>
|
||||
<div class="r">
|
||||
<a href="${_quote}">${_quote}</a>
|
||||
</div>
|
||||
</div>`
|
||||
} 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)
|
||||
|
||||
Reference in New Issue
Block a user