Skip to content

Commit dc31dac

Browse files
committed
Merge pull request evilstreak#97 from PallasKatze/master
Fixed critical error in IE8
2 parents 83e1fb7 + bb5a748 commit dc31dac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/markdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ function count_lines( str ) {
163163
// Internal - split source into rough blocks
164164
Markdown.prototype.split_blocks = function splitBlocks( input, startLine ) {
165165
input = input.replace(/(\r\n|\n|\r)/g, "\n");
166-
// [^] matches _anything_ (newline or space)
167-
var re = /([^]+?)($|\n#|\n(?:\s*\n|$)+)/g,
166+
// [\s\S] matches _anything_ (newline or space)
167+
var re = /([\s\S]+?)($|\n#|\n(?:\s*\n|$)+)/g,
168168
blocks = [],
169169
m;
170170

0 commit comments

Comments
 (0)