Timeline for Convert camelCase function name to snake_case
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 17, 2022 at 18:31 | comment | added | TomS | To be fair, making it PascalCase is pretty easy, don't explicity add 0 at the start of the list, only add it if it's not there, but beyond the scope of the question imo. I would rather a really good one that works with camelCase before I think about handling PascalCase. | |
Nov 17, 2022 at 8:36 | comment | added | Toby Speight | Yes, if PascalCase is explicitly not converted, then the modified test passes. It might be better to do something different if PascalCase input is detected - return it unchanged, or throw an exception, perhaps? | |
Nov 17, 2022 at 8:16 | comment | added | TomS |
Thanks, I will take a look but in fairness, AccessHTTPServer is not camel case if I am correct as that's pascal case, I would assume accessHTTPServer gives the intended result.
|
|
Nov 17, 2022 at 6:12 | history | answered | Toby Speight | CC BY-SA 4.0 |