[Pkg-javascript-commits] [less.js] 07/26: Fix getting of character at index

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:25:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v2.1.0
in repository less.js.

commit 7b567d016c11dae16917c04c0855927c648b62d0
Author: Andrey Taritsyn <taritsyn at gmail.com>
Date:   Sat Nov 15 16:42:15 2014 +0300

    Fix getting of character at index
---
 lib/less/parser/parser-input.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/less/parser/parser-input.js b/lib/less/parser/parser-input.js
index 39f1e4c..a7407b7 100644
--- a/lib/less/parser/parser-input.js
+++ b/lib/less/parser/parser-input.js
@@ -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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git



More information about the Pkg-javascript-commits mailing list