mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
[uorb_graph][fix] broadens regex for ambiguous subscription arrays
Co-authored-by: Beat Küng <beat-kueng@gmx.net>
This commit is contained in:
committed by
Lorenz Meier
parent
1dce38a8fe
commit
e7b1ffbd4c
@@ -269,7 +269,7 @@ class Graph(object):
|
|||||||
# note: the source-file-string is pre-processed to remove whitespace -- regexes should ignore whitespace
|
# note: the source-file-string is pre-processed to remove whitespace -- regexes should ignore whitespace
|
||||||
# note: the regexes should have at least 3 capture groups '()'; otherwise they break downstream code
|
# note: the regexes should have at least 3 capture groups '()'; otherwise they break downstream code
|
||||||
capture_cases_ambiguous = [ r"orb_copy\s*\(\s*(ORB_ID)\s*\(\s*(\w+)",
|
capture_cases_ambiguous = [ r"orb_copy\s*\(\s*(ORB_ID)\s*\(\s*(\w+)",
|
||||||
r"(?:uORB::)Subscription\s+\w+\s*(\[)\s*\w+\s*\]()",
|
r"(?:uORB::)Subscription[^\s]*\s+\w+\s*(\[)\s*\w+\s*\]()",
|
||||||
r"(ORB_ID)\s*\(\s*(\w+)",
|
r"(ORB_ID)\s*\(\s*(\w+)",
|
||||||
]
|
]
|
||||||
self._ambiguities = Ambiguities( self._topic_blacklist, capture_cases_ambiguous)
|
self._ambiguities = Ambiguities( self._topic_blacklist, capture_cases_ambiguous)
|
||||||
|
|||||||
Reference in New Issue
Block a user