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
What is this feature about (expected vs actual behaviour)?
The camel case filter, in this used via a Craft CMS filter that I'm told (by the CMS developer) directly uses Stringy, appears to return unexpected results in the case of an all caps input. The CMS appears to provide no additional processing to Stringy's return, so it appears to be a transparent layer in this issue.
I haven't been able to find a strict definition for how came case should behave when applied to an all caps source, but in testing with several web-based tools (found in a 'camel case text' google search) all return my expected output. Stringy (again via a Craft CMS filter) returns the output in 'Actual Output'.
How can I reproduce it?
Add a case to your test suite with an all caps input.
Does it take minutes, hours or days to fix?
Probably minutes, easy answer would be to push all letters to lower case before camel casing (this was the workaround I used in my implementation).
Any additional information?
I could be wrong about the 'correct' implementation of camel case, but anecdotal evidence makes me believe I'm not.
The text was updated successfully, but these errors were encountered:
What is this feature about (expected vs actual behaviour)?
The camel case filter, in this used via a Craft CMS filter that I'm told (by the CMS developer) directly uses Stringy, appears to return unexpected results in the case of an all caps input. The CMS appears to provide no additional processing to Stringy's return, so it appears to be a transparent layer in this issue.
I haven't been able to find a strict definition for how came case should behave when applied to an all caps source, but in testing with several web-based tools (found in a 'camel case text' google search) all return my expected output. Stringy (again via a Craft CMS filter) returns the output in 'Actual Output'.
How can I reproduce it?
Add a case to your test suite with an all caps input.
Does it take minutes, hours or days to fix?
Probably minutes, easy answer would be to push all letters to lower case before camel casing (this was the workaround I used in my implementation).
Any additional information?
I could be wrong about the 'correct' implementation of camel case, but anecdotal evidence makes me believe I'm not.
The text was updated successfully, but these errors were encountered: