How to work with empty Fields in Lucee's replaceList?

We are using ReplaceList() to replace a list of words with another list. The list that we are passing in to List2 can have a number of Empty Fields, which is resulting in the replacements not matching up properly.

Adobe CF’s version of ReplaceList has an argument “includeEmptyFields”, which would likely resolve our problem. However this doesn’t appear to be available in Lucee?

If not, how are others solving this problem?

Many Thanks

Jason

Looks like this attribute was added in CF2016 (https://helpx.adobe.com/coldfusion/2016/other-enhancements.html#ReplaceList) so I would suggest raising a compatibility request ticket on the Lucee JIRA (https://luceeserver.atlassian.net/), if it doesn’t already exist (search first), and we can look at getting it added.

1 Like