Skip to content

Commit

Permalink
Merge pull request #2296 from Taritsyn/master
Browse files Browse the repository at this point in the history
Fix getting of character at index
  • Loading branch information
lukeapage committed Nov 15, 2014
2 parents 27dea8e + 7b567d0 commit b09ce05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/less/parser/parser-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ module.exports = function() {
c = inp.charCodeAt(parserInput.i);

if (parserInput.autoCommentAbsorb && c === CHARCODE_FORWARD_SLASH) {
nextChar = inp[parserInput.i + 1];
nextChar = inp.charAt(parserInput.i + 1);
if (nextChar === '/') {
comment = {index: parserInput.i, isLineComment: true};
var nextNewLine = inp.indexOf("\n", parserInput.i + 1);
Expand Down

0 comments on commit b09ce05

Please sign in to comment.