View Single Post
Old 07-05-2018, 10:55 AM   #288
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

The separator is an unescaped comma, like it already is:

entry1
entry2
entry3

results into the following returned string:

Quote:
"entry1,entry2,entry3"

If a user types in a comma, it will be escaped

entry1, has a comma now
entry2
entry3

results in the following returned string:

Quote:
"entry1\, has a comma now,entry2,entry3"
With that, you know, all \, are user input commas, while all , are the separators.

If the user types in \, it will be escaped to \\,


If an entry ends with \ it must be escaped probably as well to \\ to circumvent a possible \, separator-situation.
At least I think, that this would work...

Edit: The more I think about the entry ends with \ problem, the more I get, that this needs more thinking about it on my side...

Maybe having "optional string entryXX"-return values, where XX is the entry in the GetUserInput-box, would be better, at least for Lua...

Last edited by Meo-Ada Mespotine; 07-05-2018 at 11:20 AM.
Meo-Ada Mespotine is offline   Reply With Quote