-
Notifications
You must be signed in to change notification settings - Fork 24
Bugfix: increase max number of iterations + naming change for settings #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -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"}; | ||||||
|
||||||
| String[] conversionList = {"kebab-case", "SNAKE_CASE", "PascalCase", "camelCase", "snake_case", "space case", "Space Case"}; | |
| String[] conversionList = {"kebab-case", "SNAKE_CASE", "CamelCase", "camelCase", "snake_case", "space case", "Camel Case", "PascalCase", "Space Case"}; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,7 +131,7 @@ static String transform(String text, | |
| } | ||
| } | ||
| } | ||
| if (iterations++ > 20) { | ||
| if (iterations++ > 49) { | ||
| repeat = false; | ||
| } | ||
|
Comment on lines
+134
to
136
|
||
| text = newText; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default
modelincludes "PascalCase" / "Space Case", butConversion.transform()still uses internal identifiers "CamelCase" / "Camel Case". When defaults are used, this mismatch breaksgetNext()lookups and can prevent the conversion cycle from progressing correctly. Please align the identifiers (and ideally accept the old identifiers too for backward compatibility with existing saved configs).