fetchuser

This commit is contained in:
alsotang 2014-10-12 01:51:49 +08:00
parent 6998984cb4
commit 5ac98e2ba5

View File

@ -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 标签,在这里 . 不会匹配换行