Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

debugging

  • Loading branch information...
commit 288a6dac9753a4c04faebce1e51315ca39e04347 1 parent 9336c38
@kashif-umair authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 gist-embed.js
View
4 gist-embed.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.