Skip to content

[WIP] Fix generation of compound surnames in utils.js#18

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-compound-surnames-array
Closed

[WIP] Fix generation of compound surnames in utils.js#18
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-compound-surnames-array

Conversation

Copilot AI commented Nov 12, 2025

Copy link
Copy Markdown

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>复姓不能正常生成</issue_title>
<issue_description>

OItrainer/lib/utils.js

Lines 301 to 306 in b4ec9c7

if (getRandom() < 0.02) {
const cs = compoundSurnames[uniformInt(0, compoundSurnames.length - 1)];
let n = namesPool[uniformInt(0, namesPool.length - 1)];
if (getRandom() > 0.4) n += namesPool[uniformInt(0, namesPool.length - 1)];
return cs + n;
}

以上代码中的 compoundSurnames 数组并没有定义。</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@seve42 seve42 marked this pull request as ready for review November 12, 2025 12:18
@seve42 seve42 closed this Nov 12, 2025
Copilot AI requested a review from seve42 November 12, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

复姓不能正常生成

2 participants