Make addendum not sensitive to line breaks

This commit is contained in:
sashko
2015-03-05 20:24:44 -08:00
parent 7820fd2014
commit e6dd488842

View File

@@ -1783,7 +1783,11 @@ var testShowRelease = selftest.markStack(function (s, options) {
run.read("\n");
}
if (options.addendum) {
run.read(options.addendum + "\n");
var addendum = options.addendum;
addendum = addendum.replace(/\s+/g, "\\s+") + "\\s+";
run.read(new RegExp(addendum));
}
run.expectEnd(0);
});