diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-03-02 23:33:38 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-03-02 23:33:38 -0500 |
commit | 254cc0892a613e6681dad3802570d8e952a37075 (patch) | |
tree | 0e60c9821ff135fd3783e02773fe2380591c9f1e /cmd2.py | |
parent | b657b45dcca6687da43639c49e65ce4b16303d3d (diff) | |
download | cmd2-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-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |