Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/de/netnexus/CamelCasePlugin/CamelCaseConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ public class CamelCaseConfig implements PersistentStateComponent<CamelCaseConfig
public String[] model = {
"kebab-case",
"SNAKE_CASE",
"CamelCase",
"PascalCase",
"camelCase",
"snake_case",
"space case",
"Camel Case",};
"Space Case",};


CamelCaseConfig() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private Pair<Boolean, T> beforeWriteAction(Editor editor) {
}

private String runWithoutConfig(String text) {
String[] conversionList = {"kebab-case", "SNAKE_CASE", "CamelCase", "camelCase", "snake_case", "space case", "Camel Case"};
String[] conversionList = {"kebab-case", "SNAKE_CASE", "PascalCase", "camelCase", "snake_case", "space case", "Space Case"};
return Conversion.transform(text, true, // pascal case with space
true, // space case
true, // kebab case
Expand Down
2 changes: 1 addition & 1 deletion src/de/netnexus/CamelCasePlugin/Conversion.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static String transform(String text,
}
}
}
if (iterations++ > 20) {
if (iterations++ > 49) {
repeat = false;
}
text = newText;
Expand Down