Merge remote-tracking branch 'lenormf/fix-face-name-format'
This commit is contained in:
commit
6270ce4a80
|
@ -92,7 +92,7 @@ void FaceRegistry::add_face(StringView name, StringView facedesc, bool override)
|
||||||
|
|
||||||
if (name.empty() or is_color_name(name) or
|
if (name.empty() or is_color_name(name) or
|
||||||
std::any_of(name.begin(), name.end(),
|
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));
|
throw runtime_error(format("invalid face name: '{}'", name));
|
||||||
|
|
||||||
if (name == facedesc)
|
if (name == facedesc)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user