Permalink
Browse files

debugging

  • Loading branch information...
kashif-umair committed Feb 1, 2013
1 parent 9336c38 commit 288a6dac9753a4c04faebce1e51315ca39e04347
Showing with 2 additions and 2 deletions.
  1. +2 −2 gist-embed.js
View
@@ -95,12 +95,12 @@ function getLineNumbers(lineRangeString){
for(var k = 0; k < lineNumberSections.length; k++){
var range = lineNumberSections[k].split('-');
if(range.length == 2){
- for(var i = range[0]; i <= range[1]; i++){
+ for(var i = parseInt(range[0]); i <= range[1]; i++){
lineNumbers.push(i);
}
}
else if(range.length == 1){
- lineNumbers.push(range[0]);
+ lineNumbers.push(parseInt(range[0]));
}
}
return lineNumbers;

0 comments on commit 288a6da

Please sign in to comment.