8000 Conversion stops without reaching an expected output due to exceeded iteration limit · Issue #30 · netnexus/camelcaseplugin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Conversion stops without reaching an expected output due to exceeded iteration limit #30

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

Open
fo-folder opened this issue Jan 20, 2025 · 0 comments · May be fixed by #31
Open

Conversion stops without reaching an 8000 expected output due to exceeded iteration limit #30

fo-folder opened this issue Jan 20, 2025 · 0 comments · May be fixed by #31

Comments

@fo-folder
Copy link

In the plugin config: choose only two cases for conversion. One of this combinations:

  1. camelCase and snake_case
  2. kebab-case and SNAKE_CASE
  3. Camel Case and kebab-case
  4. space case and kebab-case
  5. PascalCase and camelCase
    Then:
  • Apply changes;
  • Execute conversion 1-2 times on selected text. Example for some of the given case combinations:
  1. camelCaseConversion
  2. kebab-case-conversion

Result: The process stops after 20 iterations, with an output of an intermediate conversion state, and fails to reach the final expected conversion.
Examples:

  1. usePascalCaseWithSpace -> usepascalcasewithspace
  2. kebab-case-conversion -> KEBAB-CASE-CONVERSION

Expectation: The text must be converted following the specified conversion types, reaching the final expected format.


It might be solved in some cases by increasing the iteration limit. I'd suggest number of cases squared - 49 to cover most scenarios and not to affect performance.

fo-folder added a commit to fo-folder/camelcaseplugin that referenced this issue Jan 20, 2025
fo-folder added a commit to fo-folder/camelcaseplugin that referenced this issue Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0