1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

新增点分割转换目标;版本号更新为1.0.10

This commit is contained in:
2024-07-28 20:56:03 +08:00
parent d4277da88b
commit 762859f9e6
10 changed files with 423 additions and 46 deletions

View File

@@ -54,6 +54,9 @@ export function transformText(input: string): TransformTextResult {
// 替换连字符为 '|' (如有多个则合并)
match = match.replace(/[-_ ]+/g, '|');
// // 替换.时跳过连续点(例如Happy.. angry)
// match = match.replace(/([^.])([.])([^.])/g, '$1|$3');
// 拆分连续的小写字母和大写字母为多个单词
match = match.replace(/([a-z])([A-Z])/g, '$1|$2');