Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UNLOCK
fairds
Commits
4bf70e79
Commit
4bf70e79
authored
Jan 03, 2022
by
Jasper Koehorst
Browse files
fixed new line issue
parent
5b5f6c05
Pipeline
#35225
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/nl/fairbydesign/backend/parsers/ExcelValidator.java
View file @
4bf70e79
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment