Skip to content

Commit 1c079d0

Browse files
committed
Merge pull request evilstreak#86 from geraintluff/master
IE9 doesn't support addressing characters as array indices
2 parents 4a65f11 + b9db61f commit 1c079d0

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
@@ -817,7 +817,7 @@ Markdown.dialects.Gruber.inline = {
817817
// [ length of input processed, node/children to add... ]
818818
// Only esacape: \ ` * _ { } [ ] ( ) # * + - . !
819819
if ( text.match( /^\\[\\`\*_{}\[\]()#\+.!\-]/ ) )
820-
return [ 2, text[1] ];
820+
return [ 2, text.charAt( 1 ) ];
821821
else
822822
// Not an esacpe
823823
return [ 1, "\\" ];
@@ -1096,7 +1096,7 @@ Markdown.DialectHelpers.inline_until_char = function( text, want ) {
10961096
nodes = [];
10971097

10981098
while ( true ) {
1099-
if ( text[ consumed ] == want ) {
1099+
if ( text.charAt( consumed ) == want ) {
11001100
// Found the character we were looking for
11011101
consumed++;
11021102
return [ consumed, nodes ];

0 commit comments

Comments
 (0)