no message

Former-commit-id: 25c5d41c36d9254829d7b1aa86fc8d068389469f
Former-commit-id: 30b5b106e669d29215b0cb7fcdfd86f35326122b
Former-commit-id: cb893b18b238a535a54e0fcd0441ab154030ee96
This commit is contained in:
李杨
2018-02-24 20:17:35 +08:00
parent 9820cb164e
commit 90402ecb2d
2 changed files with 18 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
export default (quote) => {
const _quote = quote.replace(/<[^<>]+>/g, '').trim()
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)) {
const bdPanUrl = /^https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+$/i
const bdPanUrlPwd = /^链接: https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+ 密码: [a-z0-9]{4}$/i
if (bdPanUrl.test(_quote)) {
return `<div class="baidupan">
<a href="${_quote}" class="container">
<div class="icon">
@@ -11,7 +11,7 @@ export default (quote) => {
<div class="url">${_quote}</div>
</a>
</div>`
} else if (bdShareUrlPwd.test(_quote)) {
} else if (bdPanUrlPwd.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 class="baidupan">

View File

@@ -1,4 +1,12 @@
[https://github.com/FairyEver](https://github.com/FairyEver)
# 一级标题
| ID | Name | Email |
| --- | --- | --- |
| 0001 | FairyEver | 1711467488@qq.com |
```
alert('Hello World')
```
一般引用
@@ -10,4 +18,8 @@
百度云私密分享链接
> 链接: https://pan.baidu.com/s/1pMNNDZP 密码: vc95
> 链接: https://pan.baidu.com/s/1pMNNDZP 密码: vc95
[https://github.com/FairyEver](https://github.com/FairyEver)