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

多行内容逐行处理;更新测试用例;测试用例可以指定EOL换行符;transformMutliLineText 通过所有测试用例

This commit is contained in:
2024-04-03 00:07:12 +08:00
parent c7a16581ab
commit 30224cfeb6
8 changed files with 244 additions and 90 deletions

View File

@@ -0,0 +1,3 @@
export type EOL = '\n' | '\r\n';
export type ConvertFunction = (selectionText: string, eol: EOL) => string;

View File

@@ -1,3 +1,5 @@
import { EOL } from "./convert-function-type";
export type TestCaseGroup = {
group: string
testTitle: string
@@ -7,7 +9,8 @@ export type TestCaseGroup = {
export type TestCase = {
title: string
input: string | Array<string>
transformText: string
eol: EOL | Array<EOL>
transformText: Array<string>
output: {
camelCase: string
pascalCase: string

View File

@@ -3,4 +3,5 @@ export type TransformTextResult = {
trailingSpace: string
result: string
trimResult: string
// debug?: any
};