[ON HOLD] DeCamelCase (partly solved, will update thread later) - Printable Version +- Playnite Forums (https://playnite.link/forum) +-- Forum: Development (https://playnite.link/forum/forum-10.html) +--- Forum: Extensions (https://playnite.link/forum/forum-5.html) +--- Thread: [ON HOLD] DeCamelCase (partly solved, will update thread later) (/thread-1418.html) |
[ON HOLD] DeCamelCase (partly solved, will update thread later) - OneAngryGamer - 05-04-2023 I have been working on a DeCamelCase function for metadata use. While it is working OK for most test values, I still have some input values that I want it to be able to convert. I am sharing the function below. The first block comment contains the list of values that I want the function to be able to convert. Appreciate any help. function Convert-DeCamelCase($value) { RE: Help Needed - DeCamelCase - OneAngryGamer - 05-17-2023 The code had a copy/paste error. Fixed. Anyone have any suggestions on how to improve this function? I don't care about fixing acronyms. For input 'ChekhovMIA', I would want the function to return 'Chekhov MIA'. 'Heroic BSOD' returned from input 'HeroicBSOD' and so on. |