jadams-tresys commented on a change in pull request #130: Initial commit
URL: https://github.com/apache/incubator-daffodil/pull/130#discussion_r230152663
 
 

 ##########
 File path: 
daffodil-lib/src/main/scala/org/apache/daffodil/cookers/EntityReplacer.scala
 ##########
 @@ -642,6 +642,9 @@ sealed abstract class ListOfStringLiteralBase(
 
   protected def cook(raw: String, context: ThrowsSDE, forUnparse: Boolean): 
List[String] = {
     val rawList = raw.split("\\s+").toList
+    if (((rawList(0) == "") || (rawList.last == "")) && (rawList.length != 1))
+      context.SDE("The string \"\" is not allowed at the start or end of the 
list if it is not the only item in the list")
+
 
 Review comment:
   Addressed these issues and updated the error message in the most recent 
commit

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to