Open DavidS-ovm opened 1 year ago
I'm not sure which way is "more correct", so I'm just leaving this here for others to find and (for the more knowledgeable of you) to decide.
I ran into this issue upgrading from 0.2.0
to 0.3.0
where an already camelized string that had a custom acronym would suddenly become lowercased.
eg:
0.2.0
ToCamel("APIController") -> "APIController"
0.3.0
ToCamel("APIController") -> "ApiController"
I ran into the same problem. I can see arguments both ways for correctness. Maybe allow for a separate function for the old behavior or make this configuable?
I ran into a similar issue. I’d argue that changing behaviour is bad, as it can have quite a few unintended side effects for other packages. How about adding a separate method for the ‘new’ behaviour instead?
+1 on adding a separate method for the ‘new’ behavior
I ran into a same issue, I think it is a BREAK CHANGE, maybe a new function to implement the new hehavior is better.
+1 on this being a BREAKING CHANGE and should be in release notes
Hi,
this PR is to show the behaviour change of ToCamel/ToLowerCamel as of 0.3.0. The testcase in 262f4c7eed578300626d2acf41c12f45772eb35d passes for 0.2.0 but fails with 0.3.0.