no message
Former-commit-id: 25c5d41c36d9254829d7b1aa86fc8d068389469f Former-commit-id: 30b5b106e669d29215b0cb7fcdfd86f35326122b Former-commit-id: cb893b18b238a535a54e0fcd0441ab154030ee96
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
[https://github.com/FairyEver](https://github.com/FairyEver)
|
||||
# 一级标题
|
||||
|
||||
| ID | Name | Email |
|
||||
| --- | --- | --- |
|
||||
| 0001 | FairyEver | 1711467488@qq.com |
|
||||
|
||||
```
|
||||
alert('Hello World')
|
||||
```
|
||||
|
||||
一般引用
|
||||
|
||||
@@ -11,3 +19,7 @@
|
||||
百度云私密分享链接
|
||||
|
||||
> 链接: https://pan.baidu.com/s/1pMNNDZP 密码: vc95
|
||||
|
||||
[https://github.com/FairyEver](https://github.com/FairyEver)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user