From 0b82ba7b1029b9ac9e0d6a914ad7bdcac693e598 Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Wed, 15 May 2019 09:35:51 +1000 Subject: Show correct selected font feature for large lists --- src/ui/widget/font-variants.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui') diff --git a/src/ui/widget/font-variants.cpp b/src/ui/widget/font-variants.cpp index b81f809b2..28ba7dc14 100644 --- a/src/ui/widget/font-variants.cpp +++ b/src/ui/widget/font-variants.cpp @@ -711,7 +711,7 @@ namespace Widget { // Fix me: Should match a space if second part matches. ---, // : Add boundary to 'on' and 'off'. v - Glib::RefPtr regex = Glib::Regex::create("\"(\\w{4})\"\\s*([0-9]|on|off|)"); + Glib::RefPtr regex = Glib::Regex::create("\"(\\w{4})\"\\s*([0-9]+|on|off|)"); Glib::MatchInfo matchInfo; std::string setting; -- cgit v1.2.3