Commit 50b96787 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fix trim on properties.

parent e8399660
Pipeline #33265 passed with stages
in 3 minutes and 49 seconds
......@@ -125,7 +125,7 @@ class TableParser(private val step: String) {
if (count <= metadata.tableHeaderCount) {
if (count == metadata.tableHeaderIndex) {
headerProperties = line
headerProperties.forEachIndexed { index, property ->
headerProperties = headerProperties.mapIndexed { 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
......
Markdown is supported
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