TW interprets
[[[three brackets]]]
like
tag[0] = [[[three brackets]]   shown as [three brackets
tag[1] = ]   shown as ]

see your
> tagList[16] = "[[three brackets]]"

As Eric said: there is a core function that does the same. The core
extends the string prototype [1] with readBracketedList(unique). So if
you set unique to true, tags that are doubled, will be filtered.
readBracketedList calls this.parseParams() [2] which does the regexp
stuff.

-m

[1] https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/Strings.js#L184
[2] https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/Strings.js#L96

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to