When parsing corpus, anchor header pattern to line start
This commit is contained in:
parent
82c7e170b3
commit
d3ac345644
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ static string trim_output(const string &input) {
|
|||
}
|
||||
|
||||
static vector<TestEntry> parse_test_entries(string content) {
|
||||
regex header_pattern("===+\n" "([^=]+)\n" "===+\n", extended);
|
||||
regex header_pattern("(^|\n)===+\n" "([^=]+)\n" "===+\n", extended);
|
||||
regex separator_pattern("---+\r?\n", extended);
|
||||
vector<string> descriptions;
|
||||
vector<string> bodies;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue