1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 19:47:20 +00:00

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

This commit is contained in:
Jeremy Ruston 2013-07-04 16:55:47 +01:00
parent dfbd59c159
commit 4fe408d9d3

View File

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