Repository: zh-lx/pinyin-pro (ts)

Issue:
韵母 iu 转换错误
## bug 描述

```js
describe("convert", () => {
  it("correctly convert for liu2", () => {
    const converted = convert("liu2", { format: "numToSymbol" });
    expect(converted).toEqual("liú");
  })
})
```

<img width="917" alt="image" src="https://github.com/zh-lx/pinyin-pro/assets/31927845/92330901-b0ea-4fd2-bde8-4a720cec3621">

## 你预期的样子是？



## pinyin-pro 版本号

`main` 分支上的

## 引入方式

ES Module

## 最小成本的复现步骤

把如上脚本添加到任一测试文件中


Pull request description:
fix: "修复 convert 对于 iu 韵母转换不正确的问题"
close #229 

Patch:
diff --git a/lib/core/convert/index.ts b/lib/core/convert/index.ts
index 3ed4dd1..cc4374a 100644
--- a/lib/core/convert/index.ts
+++ b/lib/core/convert/index.ts
@@ -28,7 +28,7 @@ const toneMap = {
   ü: ['ü', 'ǖ', 'ǘ', 'ǚ', 'ǜ'],
   v: ['ü', 'ǖ', 'ǘ', 'ǚ', 'ǜ'],
   ui: ['ui', 'uī', 'uí', 'uǐ', 'uì'],
-  iu: ['iu', 'īu', 'íu', 'ǐu', 'ìu'],
+  iu: ['iu', 'iū', 'iú', 'iǔ', 'iù'],
   i: ['i', 'ī', 'í', 'ǐ', 'ì'],
   u: ['u', 'ū', 'ú', 'ǔ', 'ù'],
   n: ['n', 'n', 'ń', 'ň', 'ǹ'],


Test patch:
diff --git a/test/convert.test.js b/test/convert.test.js
index ff4de50..76c56ba 100644
--- a/test/convert.test.js
+++ b/test/convert.test.js
@@ -57,4 +57,9 @@ describe('convert', () => {
     const result = convert('l2', { format: 'numToSymbol' });
     expect(result).to.be.equal('l2');
   });
+
+  it('[convert]numToSymbol iu', () => {
+    const result = convert('liu2', { format: 'numToSymbol' });
+    expect(result).to.be.equal('liú');
+  });
 });