Permalink
Browse files

case insensitivity for K,M,G,T,etc

  • Loading branch information...
1 parent 8fcdcc8 commit 1181227841b1fc164f1a7648165744d5ec1eb611 Jordan Evans committed Aug 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railroad/static/js/functions.js
@@ -316,7 +316,7 @@ function parseIntWithBase(str) {
var num = null;
var bases = ['', 'K', 'M', 'G', 'T'];
for (var i=0; i < bases.length; i++) {
- if (str.search(bases[i]) >= 0) {
+ if (str.toLowerCase().search(bases[i].toLowerCase()) >= 0) {
num = parseInt(str) * (Math.pow(1000,i));
}
}

0 comments on commit 1181227

Please sign in to comment.