mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Disallow old-school tiddler files that lack a <pre> tag
This commit is contained in:
parent
84bcd0dd44
commit
c82492564c
@ -110,7 +110,7 @@ tiddlerInput.parseTiddlerDiv = function(text,fields) {
|
|||||||
var fields = {};
|
var fields = {};
|
||||||
}
|
}
|
||||||
var divRegExp = /^\s*<div\s+([^>]*)>((?:.|\n)*)<\/div>\s*$/gi;
|
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 attrRegExp = /\s*([^=\s]+)\s*=\s*"([^"]*)"/gi;
|
||||||
var match = divRegExp.exec(text);
|
var match = divRegExp.exec(text);
|
||||||
if(match) {
|
if(match) {
|
||||||
|
Loading…
Reference in New Issue
Block a user