This is an automated email from the ASF dual-hosted git repository. wangzx pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-echarts-bot.git
The following commit(s) were added to refs/heads/master by this push: new d358cb6 tweak: also check if issue title contains Chinese characters and increase the max_chn_char_count. d358cb6 is described below commit d358cb654392dc89dd9683b2bbc9c481848533f2 Author: plainheart <y...@all-my-life.cn> AuthorDate: Tue Nov 24 08:23:06 2020 +0800 tweak: also check if issue title contains Chinese characters and increase the max_chn_char_count. --- src/issue.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/issue.js b/src/issue.js index 6139a36..ce51635 100644 --- a/src/issue.js +++ b/src/issue.js @@ -2,7 +2,7 @@ const text = require('./text'); const { isCommitter } = require('./coreCommitters'); const REG_CHN_CHAR = /[\u4e00-\u9fa5]/g; -const MAX_CHN_CHAR_COUNT = 5; +const MAX_CHN_CHAR_COUNT = 8; class Issue { constructor(context) { @@ -70,7 +70,8 @@ class Issue { } _isMainlyUsingChinese() { - return this.body.match(REG_CHN_CHAR).length > MAX_CHN_CHAR_COUNT; + return this.title.match(REG_CHN_CHAR).length > MAX_CHN_CHAR_COUNT + || this.body.match(REG_CHN_CHAR).length > MAX_CHN_CHAR_COUNT; } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org