mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Refactored use of ArgParser
This commit is contained in:
parent
3515016a7e
commit
2b5676e187
@ -105,8 +105,8 @@ Tiddler.specialTiddlerFieldParsers = {
|
||||
},
|
||||
array: function(value) {
|
||||
if(typeof value === "string") {
|
||||
var parser = new ArgParser(value,{noNames: true});
|
||||
return parser.getValuesByName("","");
|
||||
var parser = new ArgParser(value,{noNames: true, allowEval: false});
|
||||
return parser.getStringValues();
|
||||
} else if (value instanceof Array) {
|
||||
var result = [];
|
||||
for(var t=0; t<value.length; t++) {
|
||||
|
Loading…
Reference in New Issue
Block a user