ID:2553696
 
Resolved
splittext() given an empty string or empty regex as the delimiter caused incorrect results in both cases, although in different ways.
BYOND Version:513.1516
Operating System:Windows 10 Pro
Web Browser:Chrome 80.0.3987.149
Applies to:DM Language
Status: Resolved (513.1517)

This issue has been resolved.
Descriptive Problem Summary:
splittext doesn't split a string into a list of characters when supplying "" as a second argument.

Code Snippet (if applicable) to Reproduce Problem:
splittext(STRING,"")


Expected Results:
It should split "Hello" into list("H","e","l","l","o")

Workarounds:
Create your own proc to handle this.
Lummox JR resolved issue with message:
splittext() given an empty string or empty regex as the delimiter caused incorrect results in both cases, although in different ways.