diff --git a/src/de/netnexus/CamelCasePlugin/CamelCaseConfig.java b/src/de/netnexus/CamelCasePlugin/CamelCaseConfig.java index 058f66d..2a9d67d 100644 --- a/src/de/netnexus/CamelCasePlugin/CamelCaseConfig.java +++ b/src/de/netnexus/CamelCasePlugin/CamelCaseConfig.java @@ -24,11 +24,11 @@ public class CamelCaseConfig implements PersistentStateComponent 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 diff --git a/src/de/netnexus/CamelCasePlugin/Conversion.java b/src/de/netnexus/CamelCasePlugin/Conversion.java index cd38041..e1345ad 100644 --- a/src/de/netnexus/CamelCasePlugin/Conversion.java +++ b/src/de/netnexus/CamelCasePlugin/Conversion.java @@ -131,7 +131,7 @@ static String transform(String text, } } } - if (iterations++ > 20) { + if (iterations++ > 49) { repeat = false; } text = newText;