Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Table Data Transform
Commits
50b96787
Commit
50b96787
authored
Sep 17, 2021
by
Jonas Waeber
Browse files
Fix trim on properties.
parent
e8399660
Pipeline
#33265
passed with stages
in 3 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/TableParser.kt
View file @
50b96787
...
...
@@ -125,7 +125,7 @@ class TableParser(private val step: String) {
if
(
count
<=
metadata
.
tableHeaderCount
)
{
if
(
count
==
metadata
.
tableHeaderIndex
)
{
headerProperties
=
line
headerProperties
.
forEach
Indexed
{
index
,
property
->
headerProperties
=
headerProperties
.
map
Indexed
{
index
,
property
->
val
trimmedProperty
=
property
.
trim
()
if
(
trimmedProperty
.
isEmpty
())
{
throw
InvalidInputException
(
...
...
@@ -137,6 +137,7 @@ class TableParser(private val step: String) {
"Invalid property name $trimmedProperty on row $count in column ${index + 1}! You may not use the any of the following characters: + , . "
)
}
trimmedProperty
}
}
continue
...
...
Write
Preview
Markdown
is supported
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