summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-03-02 23:33:38 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-03-02 23:33:38 -0500
commit254cc0892a613e6681dad3802570d8e952a37075 (patch)
tree0e60c9821ff135fd3783e02773fe2380591c9f1e /cmd2.py
parentb657b45dcca6687da43639c49e65ce4b16303d3d (diff)
downloadcmd2-git-254cc0892a613e6681dad3802570d8e952a37075.tar.gz
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.
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 3b740a52..af3ebd8d 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -2674,7 +2674,7 @@ class ParserManager:
s = self.input_source_parser.transformString(s.lstrip())
s = self.commentGrammars.transformString(s)
for (shortcut, expansion) in self.shortcuts:
- if s.lower().startswith(shortcut):
+ if s.startswith(shortcut):
s = s.replace(shortcut, expansion + ' ', 1)
break
try: