Skip to content

Commit d34b2d6

Browse files
RitheeshBaradwajhardbyte
authored andcommitted
chore: use regex to identify start line
1 parent a598e22 commit d34b2d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

can/io/asc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def __iter__(self) -> Generator[Message, None, None]:
276276
continue
277277

278278
# Handle the "Start of measurement" line
279-
if line.startswith("0.000000") and "Start of measurement" in line:
279+
if re.match(r"^\d+\.\d+\s+Start of measurement", line):
280280
# Skip this line as it's just an indicator
281281
continue
282282

0 commit comments

Comments
 (0)