mirror of https://github.com/evilhero/mylar
FIX: make index case-insensitive (#2381)
This commit is contained in:
parent
2cd1f876ee
commit
7c24b668f7
|
@ -70,7 +70,7 @@ function bin ( data ) {
|
||||||
bins['nonalpha'] = 0;
|
bins['nonalpha'] = 0;
|
||||||
for ( var i=0, ien=data.length ; i<ien ; i++ ) {
|
for ( var i=0, ien=data.length ; i<ien ; i++ ) {
|
||||||
letter = data[i].charAt(13).toUpperCase();
|
letter = data[i].charAt(13).toUpperCase();
|
||||||
if ( !letter.match(/^[A-Z]/) ) {
|
if ( !letter.match(/^[a-zA-Z]/) ) {
|
||||||
bins['nonalpha']++;
|
bins['nonalpha']++;
|
||||||
}
|
}
|
||||||
else if ( bins[letter] ) {
|
else if ( bins[letter] ) {
|
||||||
|
|
Loading…
Reference in New Issue