From f674aa966ba72c14e95e9b82e55ec97ebded7c89 Mon Sep 17 00:00:00 2001 From: Thore Bödecker Date: Sun, 26 Jun 2022 22:44:25 +0200 Subject: allow single quote as quote char too --- fb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[^=]+)=(?P"?)(?P.+)(?P=quotechar)$') + MATCHER = re.compile('^(?P[^=]+)=(?P[\'"]?)(?P.+)(?P=quotechar)$') CONSTRAINTS = { 'clipboard_target': ConfigConstraint('clipboard_target', 'enum', ('none', 'off', 'default', 'primary', 'clipboard')) -- cgit v1.2.3-24-g4f1b