实现选中字符串分词 例如 TomLikes eat iceCream. 分词为 tom|likes|eat|ice|cream|.
This commit is contained in:
@@ -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: '',
|
||||
}
|
||||
},
|
||||
];
|
||||
|
Reference in New Issue
Block a user