From 96b7e08afbf0d9b8bd16febf06b91f3b8dc4b34e Mon Sep 17 00:00:00 2001 From: James Cherry Date: Fri, 20 Dec 2024 08:52:12 -0700 Subject: [PATCH] issue146 verilog escaped nanes end in \n Signed-off-by: James Cherry --- network/VerilogNamespace.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/VerilogNamespace.cc b/network/VerilogNamespace.cc index 48d182a7..6d1542b5 100644 --- a/network/VerilogNamespace.cc +++ b/network/VerilogNamespace.cc @@ -180,7 +180,7 @@ verilogToSta(const char *verilog_name) // Ignore leading '\'. verilog_name = &verilog_name[1]; size_t verilog_name_length = strlen(verilog_name); - if (verilog_name[verilog_name_length - 1] == ' ') + if (isspace(verilog_name[verilog_name_length - 1])) verilog_name_length--; string sta_name; for (size_t i = 0; i < verilog_name_length; i++) {