http://trac.tiddlywiki.org/changeset/11275
MartinBudden
2009-11-25 06:21:50 -0800 (Wed, 25 Nov 2009)
67
Ticket #1134
section definition syntax should allow leading spaces
---------------
U Trunk/core/js/TiddlyWiki.js
---------------
Modified: Trunk/core/js/TiddlyWiki.js
===================================================================
--- Trunk/core/js/TiddlyWiki.js 2009-11-25 14:09:29 UTC (rev 11274)
+++ Trunk/core/js/TiddlyWiki.js 2009-11-25 14:21:50 UTC (rev 11275)
@@ -107,7 +107,7 @@
if(tiddler) {
if(!section)
return tiddler.text;
- var re = new RegExp("(^!{1,6}" + section.escapeRegExp() + "[
\t]*\n)","mg");
+ var re = new RegExp("(^!{1,6}[ \t]*" + section.escapeRegExp() +
"[ \t]*\n)","mg");
re.lastIndex = 0;
var match = re.exec(tiddler.text);
if(match) {
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.