mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-01 19:59:09 +00:00
Adjust regex to work around an issue with importing certain tiddlers on Firefox
This commit is contained in:
parent
861e350444
commit
2d1d53893a
@ -36,8 +36,8 @@ var parseTiddlerDiv = function(text /* [,fields] */) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Parse the DIV body
|
// Parse the DIV body
|
||||||
var divRegExp = /^\s*<div\s+([^>]*)>((?:\s|\S)*)<\/div>\s*$/gi,
|
var divRegExp = /^\s*<div\s+([^>]*)>([(?:\s|\S)]*)<\/div>\s*$/gi,
|
||||||
subDivRegExp = /^\s*<pre>((?:\s|\S)*)<\/pre>\s*$/gi,
|
subDivRegExp = /^\s*<pre>([(?:\s|\S)]*)<\/pre>\s*$/gi,
|
||||||
attrRegExp = /\s*([^=\s]+)\s*=\s*"([^"]*)"/gi,
|
attrRegExp = /\s*([^=\s]+)\s*=\s*"([^"]*)"/gi,
|
||||||
match = divRegExp.exec(text);
|
match = divRegExp.exec(text);
|
||||||
if(match) {
|
if(match) {
|
||||||
|
Loading…
Reference in New Issue
Block a user