mirror of
https://github.com/cnodejs/nodeclub.git
synced 2026-02-01 16:34:28 +00:00
fetchuser
This commit is contained in:
parent
6998984cb4
commit
5ac98e2ba5
@ -21,7 +21,7 @@ var _ = require('lodash');
|
||||
*/
|
||||
var fetchUsers = function (text) {
|
||||
var ignore_regexs = [
|
||||
/```.+```/, // 去除单行的 ```
|
||||
/```.+?```/, // 去除单行的 ```
|
||||
/^```[\s\S]+?^```/gm, // ``` 里面的是 pre 标签内容
|
||||
/`[\s\S]+?`/g, // 同一行中,`some code` 中内容也不该被解析
|
||||
/^ .*/gm, // 4个空格也是 pre 标签,在这里 . 不会匹配换行
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user