FIX: make index case-insensitive (#2381)

This commit is contained in:
Barbeque Sauce 2019-12-15 21:31:24 -05:00 committed by GitHub
parent 2cd1f876ee
commit 7c24b668f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ function bin ( data ) {
bins['nonalpha'] = 0;
for ( var i=0, ien=data.length ; i<ien ; i++ ) {
letter = data[i].charAt(13).toUpperCase();
if ( !letter.match(/^[A-Z]/) ) {
if ( !letter.match(/^[a-zA-Z]/) ) {
bins['nonalpha']++;
}
else if ( bins[letter] ) {