mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-09 04:00:46 +08:00
Forbid bilingual glosses in forced reply language.
Stop English replies from keeping Chinese parentheticals like failure (失联). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
91f2e9a5c8
commit
8360c2e4fc
4 changed files with 19 additions and 4 deletions
|
|
@ -50,11 +50,14 @@ test('replyInstruction is empty for follow-user and forces otherwise', () => {
|
|||
assert.equal(replyInstruction('follow-user'), '')
|
||||
assert.match(replyInstruction('en'), /English/)
|
||||
assert.match(replyInstruction('en'), /Do not switch to the user's language/)
|
||||
assert.match(replyInstruction('en'), /Never add Chinese glosses/)
|
||||
assert.match(replyInstruction('zh'), /简体中文/)
|
||||
assert.match(replyInstruction('zh'), /Never add English glosses/)
|
||||
})
|
||||
|
||||
test('replyReminder is empty for follow-user and reminds otherwise', () => {
|
||||
assert.equal(replyReminder('follow-user'), '')
|
||||
assert.match(replyReminder('en'), /Mandatory/)
|
||||
assert.match(replyReminder('en'), /English/)
|
||||
assert.match(replyReminder('en'), /No Chinese words/)
|
||||
assert.match(replyReminder('zh'), /No English glosses/)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue