You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just hitted following case while using your extension:
When you're toggling some simple single word without any "dividable parts/separators", like console for example.
Then, there are only 3 possible case-variations for that word: console (lowercase) Console (capitalized) CONSOLE (uppercase)
So, is it possible to make check (after each case transformation) if transformed string is different from the original input?
When resulting string is not different (so no transformation has been actually done) then move to the next transformation in the list and apply it - until any change is made (or transformation list reaches it's end - to prevent infinite loop).
As a result - only 3 variations (described above) will be resulted while toggling the case (because dot case, header case, kebab case and others cases (which are using "word separation") will be skipped by the check).
Simply said - after this change, only transformations which would have any effect will be actually used/cycled. Does it makes sense to you @pranshuagrawal ❓
The text was updated successfully, but these errors were encountered:
Hi @pranshuagrawal !
I've just hitted following case while using your extension:
When you're toggling some simple single word without any "dividable parts/separators", like
console
for example.Then, there are only 3 possible case-variations for that word:
console
(lowercase)Console
(capitalized)CONSOLE
(uppercase)So, is it possible to make check (after each case transformation) if transformed string is different from the original input?
When resulting string is not different (so no transformation has been actually done) then move to the next transformation in the list and apply it - until any change is made (or transformation list reaches it's end - to prevent infinite loop).
As a result - only 3 variations (described above) will be resulted while toggling the case (because dot case, header case, kebab case and others cases (which are using "word separation") will be skipped by the check).
Simply said - after this change, only transformations which would have any effect will be actually used/cycled. Does it makes sense to you @pranshuagrawal ❓
The text was updated successfully, but these errors were encountered: