1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Disallow old-school tiddler files that lack a <pre> tag

This commit is contained in:
Jeremy Ruston 2011-11-25 13:27:18 +00:00
parent 84bcd0dd44
commit c82492564c

View File

@ -110,7 +110,7 @@ tiddlerInput.parseTiddlerDiv = function(text,fields) {
var fields = {};
}
var divRegExp = /^\s*<div\s+([^>]*)>((?:.|\n)*)<\/div>\s*$/gi;
var subDivRegExp = /^(?:\s*<pre>)((?:.|\n)*)(?:<\/pre>\s*)$/gi;
var subDivRegExp = /^\s*<pre>((?:.|\n)*)<\/pre>\s*$/gi;
var attrRegExp = /\s*([^=\s]+)\s*=\s*"([^"]*)"/gi;
var match = divRegExp.exec(text);
if(match) {