Permalink
Browse files

Merge pull request #752 from maritz/master

Change code flags string access to chartAt for IE7
  • Loading branch information...
2 parents 0c38dfd + 83b76e5 commit cd85f7d331f713b666b9b7d7008af3c9449dcc47 @tj tj committed Aug 24, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/lexer.js
View
@@ -1,4 +1,3 @@
-
/*!
* Jade - Lexer
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
@@ -475,8 +474,8 @@ Lexer.prototype = {
var flags = captures[1];
captures[1] = captures[2];
var tok = this.tok('code', captures[1]);
- tok.escape = flags[0] === '=';
- tok.buffer = flags[0] === '=' || flags[1] === '=';
+ tok.escape = flags.charAt(0) === '=';
+ tok.buffer = flags.charAt(0) === '=' || flags.charAt(1) === '=';
return tok;
}
},

0 comments on commit cd85f7d

Please sign in to comment.