From df411ad1c9477265a23d001718ce6d92c3d7c6ff Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Thu, 1 Nov 2018 18:50:09 +0100 Subject: [PATCH] allow model names starting with underscore _ --- src/frontend/inpcom.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 7788e80de..a54a94297 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1821,6 +1821,10 @@ is_a_modelname(const char *s) if (isalpha_c(s[0])) return TRUE; + /* people use model names starting with '_' */ + if (s[0] == '_') + return TRUE; + /* e.g. 1N4002, but do not accept floats (for example 1E2) */ if (isdigit_c(s[0]) && isalpha_c(s[1]) && isdigit_c(s[2]) && toupper_c(s[1]) != 'E') return TRUE;