Skip to content

Commit ee29e88

Browse files
committed
[TestScript] Added Comments for the Regex Pattern in the Log Parser
Added comments for `self._regex = re.compile(f'^.*{regex_str}.*$')` in vtr_flow/scripts/python_libs/vtr/log_parse.py. Detailed in GitHub Issue verilog-to-routing#2743.
1 parent 1549a87 commit ee29e88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vtr_flow/scripts/python_libs/vtr/log_parse.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class ParsePattern:
2323
def __init__(self, name, filename, regex_str, default_value=None):
2424
self._name = name
2525
self._filename = filename
26+
# Look for the specified pattern somewhere in the line, but any characters
27+
# can occur before and after it. Detailed in GitHub Issue #2743.
2628
self._regex = re.compile(f'^.*{regex_str}.*$')
2729
self._default_value = default_value
2830

0 commit comments

Comments
 (0)