From 2b0c143808c1a9504871a0f73d8de32d109c218c Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 20 Jul 2018 09:47:26 +0300 Subject: [PATCH] src: Allow face names to contain an underscore Closes #2229 --- src/face_registry.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/face_registry.cc b/src/face_registry.cc index 5a7a8df6..13d90558 100644 --- a/src/face_registry.cc +++ b/src/face_registry.cc @@ -92,7 +92,7 @@ void FaceRegistry::add_face(StringView name, StringView facedesc, bool override) if (name.empty() or is_color_name(name) or std::any_of(name.begin(), name.end(), - [](char c){ return not isalnum(c); })) + [](char c){ return not is_word(c); })) throw runtime_error(format("invalid face name: '{}'", name)); if (name == facedesc)