summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThore Bödecker <me@foxxx0.de>2022-06-26 22:44:25 +0200
committerThore Bödecker <me@foxxx0.de>2022-06-26 22:44:25 +0200
commitf674aa966ba72c14e95e9b82e55ec97ebded7c89 (patch)
tree145653b94ec644bc0f1061be441bf2666e9e742a
parent6a3a8d6246ccfbf903ccabf48f9209309fea2905 (diff)
allow single quote as quote char too
-rwxr-xr-xfb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb.py b/fb.py
index cda7b32..92486af 100755
--- a/fb.py
+++ b/fb.py
@@ -423,7 +423,7 @@ class ConfigConstraint():
class ConfigParser:
- MATCHER = re.compile('^(?P<key>[^=]+)=(?P<quotechar>"?)(?P<value>.+)(?P=quotechar)$')
+ MATCHER = re.compile('^(?P<key>[^=]+)=(?P<quotechar>[\'"]?)(?P<value>.+)(?P=quotechar)$')
CONSTRAINTS = {
'clipboard_target': ConfigConstraint('clipboard_target', 'enum', ('none', 'off', 'default', 'primary', 'clipboard'))