Skip to content

Commit a91b0e9

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bootstrap/src/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,12 @@ impl TestCommand {
118118
}
119119

120120
// Collect test-auxiliary
121-
let aux_use = regex::Regex::new(r"\s*//@\s*aux-build:(?P<fname>.*)").unwrap();
121+
let aux_use = regex::Regex::new(r"(?m)//@\s*aux-build:(?P<fname>.*)").unwrap();
122122
let mut auxiliaries = vec![];
123123
for case in cases.iter() {
124124
let content = std::fs::read_to_string(&case.source).unwrap();
125125
for cap in aux_use.captures_iter(&content) {
126+
println!("{:?}", case.source);
126127
let fname = cap.name("fname").unwrap().as_str();
127128
let source = Path::new("tests/auxiliary").join(fname);
128129
let filename = source.file_stem().unwrap();

0 commit comments

Comments
 (0)