Skip to content

Commit 5cd502c

Browse files
committed
modify regex to start with (m?) to enable multirow
Signed-off-by: xizheyin <[email protected]>
1 parent cff07cb commit 5cd502c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bootstrap/src/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl TestCommand {
138138
}
139139

140140
// Collect test-auxiliary
141-
let aux_use = regex::Regex::new(r"\s*//@\s*aux-build:(?P<fname>.*)").unwrap();
141+
let aux_use = regex::Regex::new(r"(?m)//@\s*aux-build:(?P<fname>.*)").unwrap();
142142
let mut auxiliaries = vec![];
143143
for case in cases.iter() {
144144
let content = std::fs::read_to_string(&case.source).unwrap();

0 commit comments

Comments
 (0)