Closed fightinggg closed 4 years ago
建议作者把源代码这样修改,于是就不会出现大写的tag无法匹配小写的问题了,个人认为tag不应该区分大小写,例如:JAVA、Java和java应该是一个tag
/** * Find `tags` that `src` contains. * @param {string} src * @param {Array} tags * @return {Array} */ module.exports.matchTags = function (src, tags) { let result = []; if (src && tags) { tags.forEach(tag => { if (src.toLowerCase().indexOf(tag.toLowerCase()) > 0) { result.push(tag); } }); } return result; };
你这个插件,是真的爽,我咋看咋喜欢,
相见恨晚
这个建议很赞啊,谢谢~ 稍后我发布新版本把它给加上
最新版本1.0.8已经加上了这个功能~
1.0.8
建议作者把源代码这样修改,于是就不会出现大写的tag无法匹配小写的问题了,个人认为tag不应该区分大小写,例如:JAVA、Java和java应该是一个tag