From f04b056392d5ceea78a97f553ff02d909090cca9 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 10 Jul 2012 23:18:07 +0100 Subject: [PATCH] Fixed a longstanding issue with javascript module tiddlers being truncated by one character --- core/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/boot.js b/core/boot.js index 4e123d099..220a4d217 100644 --- a/core/boot.js +++ b/core/boot.js @@ -505,7 +505,7 @@ $tw.plugins.registerPlugin($tw.config.root + "/kernel/tiddlerdeserializer/dom"," s = text.indexOf("{"), e = text.lastIndexOf("}"); if(node.hasAttribute("data-module") && s !== -1 && e !== -1) { - text = text.substring(s+1,e-1); + text = text.substring(s+1,e); } var fields = {text: text}, attributes = node.attributes;