]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Task: Improve config parsing regex
authorTomas Babej <tomasbabej@gmail.com>
Wed, 8 Apr 2015 21:57:02 +0000 (23:57 +0200)
committerTomas Babej <tomasbabej@gmail.com>
Wed, 8 Apr 2015 21:57:02 +0000 (23:57 +0200)
tasklib/task.py

index 0f8d963140949683cc878f9a192a83bf1802bfb4..4d07fbf4da49c00bd1f1153aa51ced88bb531803 100644 (file)
@@ -957,7 +957,7 @@ class TaskWarrior(object):
             )
 
         config = dict()
             )
 
         config = dict()
-        config_regex = re.compile(r'^(?P<key>[_a-z\.]+)\s+(?P<value>[^\s].+$)')
+        config_regex = re.compile(r'^(?P<key>[^\s]+)\s+(?P<value>[^\s].+$)')
 
         for line in raw_output:
             match = config_regex.match(line)
 
         for line in raw_output:
             match = config_regex.match(line)