Skip to content

Commit

Permalink
fix: generate lowercase index instead of uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
maasencioh committed Nov 8, 2021
1 parent ff591ae commit dc9f1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { OneLowerCase } from 'cheminfo-types';

export function intToChar(int: number) {
return String.fromCharCode(65 + int) as OneLowerCase;
return String.fromCharCode(97 + int) as OneLowerCase;
}

export function nextChar(keys: string[]): OneLowerCase {
Expand Down

0 comments on commit dc9f1ed

Please sign in to comment.