Fixed problem with tags that appear more than once in the tag string

print-window-tiddler
Jeremy Ruston 2013-07-04 16:55:47 +01:00
rodzic dfbd59c159
commit 4fe408d9d3
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -256,7 +256,10 @@ $tw.utils.parseStringArray = function(value) {
do {
match = memberRegExp.exec(value);
if(match) {
results.push(match[1] || match[2]);
var item = match[1] || match[2];
if(results.indexOf(item) === -1) {
results.push(item);
}
}
} while(match);
return results;