From 33026166a3b500ac7d9c5d8fe1effab65fbf8f58 Mon Sep 17 00:00:00 2001 From: John Sawin Date: Fri, 14 Oct 2016 19:28:25 -0400 Subject: [PATCH] fixes bug with ->PascalCase conversion requiring an uppercase letter --- stringutilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stringutilities.py b/stringutilities.py index 2167fa3..1c31866 100644 --- a/stringutilities.py +++ b/stringutilities.py @@ -106,7 +106,7 @@ def run(self, edit): for region in self.view.sel(): if not region.empty(): text = self.view.substr(region) - text = self.toPascalCase(text) if '_' in text and text[0].isupper() else self.toUnderscores(text) + text = self.toPascalCase(text) if '_' in text and text[0].islower() else self.toUnderscores(text) self.view.replace(edit, region, text) def toUnderscores(self, name):