1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Fixed a longstanding issue with javascript module tiddlers being truncated by one character

This commit is contained in:
Jeremy Ruston 2012-07-10 23:18:07 +01:00
parent ea6d7f5c08
commit f04b056392

View File

@ -505,7 +505,7 @@ $tw.plugins.registerPlugin($tw.config.root + "/kernel/tiddlerdeserializer/dom","
s = text.indexOf("{"), s = text.indexOf("{"),
e = text.lastIndexOf("}"); e = text.lastIndexOf("}");
if(node.hasAttribute("data-module") && s !== -1 && e !== -1) { 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}, var fields = {text: text},
attributes = node.attributes; attributes = node.attributes;