Skip to content

Commit 254cc08

Browse files
committed
Removed an unnecessary call to .lower() when determining if a shortcut matches the beginning of the line
Previously shortcut matching was always case insensitive. Now it is always case sensitive.
1 parent b657b45 commit 254cc08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2674,7 +2674,7 @@ def parsed(self, raw):
26742674
s = self.input_source_parser.transformString(s.lstrip())
26752675
s = self.commentGrammars.transformString(s)
26762676
for (shortcut, expansion) in self.shortcuts:
2677-
if s.lower().startswith(shortcut):
2677+
if s.startswith(shortcut):
26782678
s = s.replace(shortcut, expansion + ' ', 1)
26792679
break
26802680
try:

0 commit comments

Comments
 (0)