Skip to content

Commit

Permalink
Merge pull request #752 from maritz/master
Browse files Browse the repository at this point in the history
Change code flags string access to chartAt for IE7
  • Loading branch information
tj committed Aug 24, 2012
2 parents 0c38dfd + 83b76e5 commit cd85f7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/lexer.js
@@ -1,4 +1,3 @@

/*!
* Jade - Lexer
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
Expand Down Expand Up @@ -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;
}
},
Expand Down

0 comments on commit cd85f7d

Please sign in to comment.