Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shahed22 authored Jul 31, 2024
1 parent 0bad9ea commit a7aad42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def is_valid_verilog_expression(expr, input_ports):
token = token.strip()
if not token:
continue
if not valid_pattern.match(token) and token not in input_ports.keys() and re.fullmatch(r'^[+-]?\d+(\.\d+)?([eE][+-]?\d+)?$', tokens[-1]) is not None:
if not valid_pattern.match(token) and token not in input_ports.keys() and re.fullmatch(r'^\d+(\.\d+)?$', tokens[-1]) is not None:
return False

return True

0 comments on commit a7aad42

Please sign in to comment.