Skip to content
This repository
Browse code

Merge pull request #752 from maritz/master

Change code flags string access to chartAt for IE7
  • Loading branch information...
commit cd85f7d331f713b666b9b7d7008af3c9449dcc47 2 parents 0c38dfd + 83b76e5
TJ Holowaychuk authored

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 3 lib/lexer.js
5 lib/lexer.js
... ... @@ -1,4 +1,3 @@
1   -
2 1 /*!
3 2 * Jade - Lexer
4 3 * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
@@ -475,8 +474,8 @@ Lexer.prototype = {
475 474 var flags = captures[1];
476 475 captures[1] = captures[2];
477 476 var tok = this.tok('code', captures[1]);
478   - tok.escape = flags[0] === '=';
479   - tok.buffer = flags[0] === '=' || flags[1] === '=';
  477 + tok.escape = flags.charAt(0) === '=';
  478 + tok.buffer = flags.charAt(0) === '=' || flags.charAt(1) === '=';
480 479 return tok;
481 480 }
482 481 },

0 comments on commit cd85f7d

Please sign in to comment.
Something went wrong with that request. Please try again.