Reverting changes to stringifyList (#4249)

I (Flibbles) changed it so that lists generated by stringifyList
would always be compatible with a filter parser, but since lists
are not, and never will be, a subset of filters, there isn't a
point.

More importantly, wrapping negative numbers like "-7" in brackets
would mess up some math stuff.
This commit is contained in:
Cameron Fischer
2019-09-09 14:56:40 +01:00
committed by Jeremy Ruston
parent 953038f0b2
commit fb12807a33
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -317,7 +317,7 @@ $tw.utils.stringifyList = function(value) {
var result = new Array(value.length);
for(var t=0, l=value.length; t<l; t++) {
var entry = value[t] || "";
if(entry.indexOf(" ") !== -1 || "+-~=".indexOf(entry[0]) !== -1) {
if(entry.indexOf(" ") !== -1) {
result[t] = "[[" + entry + "]]";
} else {
result[t] = entry;