Fix broken regexps

Using .|\n was a very bad idea, as it doesn't match other newline
characters
print-window-tiddler
Jeremy Ruston 2013-09-18 19:09:54 +01:00
rodzic b563d8e98a
commit 3d5d5952b7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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) {