Skip to content

Commit b7d7585

Browse files
committed
Description: add missing from start, so it only searches from there
Reason: otherwise it might search through the complete string to find a match Files: dbc.cpp
1 parent 117deb6 commit b7d7585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dbc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace libdbc {
3434
name_space_re("^(NS_)\\s\\:"), node_re("^(BU_:)\\s((?:[\\w]+?\\s?)*)"),
3535
message_re("^(BO_)\\s(\\d+)\\s(\\w+)\\:\\s(\\d+)\\s(\\w+|Vector__XXX)"),
3636
// NOTE: No multiplex support yet
37-
signal_re(std::string(whiteSpace) +
37+
signal_re(std::string("^") + whiteSpace +
3838
signalIdentifierPattern +
3939
whiteSpace +
4040
namePattern +

0 commit comments

Comments
 (0)