Last modified: 2010-08-23 22:51:48 UTC
Created attachment 7529 [details] Patch solving the bug by implementing described solution Parser extension function #arraymap allows for the specification of a user defined separator. If an empty separator is passed with for example {{#arraymap:12345||x|[[x]]}} it is directly passed on to explode() which yields a warning on the resulting HTML page. While the current implementation doesn't offer a defined result for this case, I believe a meaning could be attached to it solving this issue. There is currently no way to apply #arraymap to a list of characters without a separator, e.g. for separating the digits in the example above. For this use case #arraymap should break around the "empty" space between the digits. This motivates my solution of using separator='' to yield a list of single characters for a given string. The attached patch implements this behavior.
This patch was added in SF version 2.0 - thanks for the code!