Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed Nov 1, 2024
1 parent 4f75992 commit 09794d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/issue_triage_bot/lib/src/prompts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ body: $body
</issue>
Please use the following rules to decide which language to use for your description:
- If the body and title of the issue contain Chinese text, you can only use Chinese text (Please ignore the code and log).
${containsChinese(title + body) ? '请你必须使用中文。' : ''}
''';
}

bool containsChinese(String str) => RegExp('[\u4e00-\u9fff]').hasMatch(str);

0 comments on commit 09794d3

Please sign in to comment.