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

实现选中字符串分词 例如 TomLikes eat iceCream. 分词为 tom|likes|eat|ice|cream|.

This commit is contained in:
zhangbk1
2024-04-02 17:39:23 +08:00
parent 6b661e5e37
commit 7edf6f8d13
5 changed files with 231 additions and 81 deletions

View File

@@ -49,7 +49,7 @@ const testCase: Array<TestCase> = [
},
{
input:
`今天是星期日`
'今天是星期日'
,
isSkip: true,
skipReason: SkipReason.NOT_CONTAIN_LETTERS
@@ -125,4 +125,59 @@ const testCase: Array<TestCase> = [
pascalCase: ' A NiceDay',
}
},
{
input:
' Julius_Caesar, William_Shakespeare, Albert_Einstein, Marie_Curie, WolfgangAmadeusMozart, Vincent-van-Gogh. '
,
isSkip: false,
splitResult: [],
output: {
camelCase: '',
pascalCase: '',
}
},
{
input:
'🥰 a-cup/_of Coffee🍻,-_please!. '
,
isSkip: false,
splitResult: [],
output: {
camelCase: '',
pascalCase: '',
}
},
{
input:
' NHDAs--+90-usz&* '
,
isSkip: false,
splitResult: [],
output: {
camelCase: '',
pascalCase: '',
}
},
{
input:
'--担心你鸿dAf_=coffee—_— '
,
isSkip: false,
splitResult: [],
output: {
camelCase: '',
pascalCase: '',
}
},
{
input:
'fsdi_sdacsaf+desd'
,
isSkip: false,
splitResult: [],
output: {
camelCase: '',
pascalCase: '',
}
},
];