From 9938a67dc9654f34eb2000b46d554922df7a493a Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Thu, 2 Feb 2017 11:47:06 -0800 Subject: [PATCH] prevent stripping whitespace from end of regex patterns --- wakatime/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wakatime/main.py b/wakatime/main.py index 237560c..19d64e1 100644 --- a/wakatime/main.py +++ b/wakatime/main.py @@ -243,10 +243,10 @@ def parseArguments(): else: args.hidefilenames = [] if configs.has_option('settings', 'hidefilenames'): - option = configs.get('settings', 'hidefilenames').strip() - if option.lower() == 'true': + option = configs.get('settings', 'hidefilenames') + if option.strip().lower() == 'true': args.hidefilenames = ['.*'] - elif option.lower() != 'false': + elif option.strip().lower() != 'false': try: for pattern in option.split("\n"): if pattern.strip() != '':