issue146 verilog escaped nanes end in \n

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-12-20 08:52:12 -07:00
parent a06c4fc7ac
commit 96b7e08afb
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {