kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fix broken regexps
Using .|\n was a very bad idea, as it doesn't match other newline charactersprint-window-tiddler
rodzic
b563d8e98a
commit
3d5d5952b7
|
|
@ -36,8 +36,8 @@ var parseTiddlerDiv = function(text /* [,fields] */) {
|
|||
}
|
||||
}
|
||||
// Parse the DIV body
|
||||
var divRegExp = /^\s*<div\s+([^>]*)>((?:.|\n)*)<\/div>\s*$/gi,
|
||||
subDivRegExp = /^\s*<pre>((?:.|\n)*)<\/pre>\s*$/gi,
|
||||
var divRegExp = /^\s*<div\s+([^>]*)>((?:\s|\S)*)<\/div>\s*$/gi,
|
||||
subDivRegExp = /^\s*<pre>((?:\s|\S)*)<\/pre>\s*$/gi,
|
||||
attrRegExp = /\s*([^=\s]+)\s*=\s*"([^"]*)"/gi,
|
||||
match = divRegExp.exec(text);
|
||||
if(match) {
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue