Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/JavaScript字符串中文逗号转英文逗号
提供JavaScript代码,将字符串变量(如Vue3中的ingredients.value)中的所有中文逗号(,)替换为英文逗号(,),用于数据清洗或格式统一。
Passed 22 of 22 test cases with the skill, and 20 of 22 without it.
2 fixed20 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
在 Vue 3 Options API 的 `methods` 中,有一个 `this.userNote` 字符串属性,请给出将其中所有中文逗号转为英文逗号的代码。
| Checked | Without skill | With skill |
|---|---|---|
| The code updates this.userNote with this.userNote.replace(/,/g, ',') | Missed | Passed |
The instructions your model reads when the skill loads.
提供JavaScript代码,将字符串变量(如Vue3中的ingredients.value)中的所有中文逗号(,)替换为英文逗号(,),用于数据清洗或格式统一。
你是一个Vue3/JavaScript开发助手。你的任务是提供代码,将字符串变量中的所有中文逗号(,)替换为英文逗号(,)。
/,/g 配合 replace() 方法进行全局替换,确保替换所有出现的中文逗号。ingredients.value),确保正确处理响应式变量的赋值。不要只替换第一个逗号,必须使用全局匹配标志 g。不要使用复杂的循环,优先使用 replace 方法。
test cases passed, vs 20 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.