Commit 4bf70e79 authored by Jasper Koehorst's avatar Jasper Koehorst
Browse files

fixed new line issue

parent 5b5f6c05
Pipeline #35225 canceled with stage
......@@ -429,7 +429,7 @@ public class ExcelValidator {
}
}
if (failed) {
if (failed && ApplicationServiceInitListener.debug) {
domain.save("multipleidentifiers.ttl");
throw new Exception();
}
......@@ -1415,6 +1415,8 @@ public class ExcelValidator {
metadata = metadataLookup.get(headerItem);
Pattern pattern = metadata.getRegex();
String value = getStringValueCell(cell);
// Clear out multi line strings
value = value.replaceAll("[\n\r]", " ");
// ignoring empty cells
if (metadata.getRequirement().toLowerCase().matches("m") && value.length() == 0) {
logging("There is no value for the obligatory field " + metadata.getLabel() + " and should match pattern " + metadata.getSyntax() + " such as in example " + metadata.getExample());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment