Skip to content

Commit

Permalink
fix: a1 notation converter
Browse files Browse the repository at this point in the history
  • Loading branch information
jroehl committed May 22, 2023
1 parent 756b5b2 commit b4b09f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const colToA = (col: number): string => {
* @returns {number}
*/
export const aToCol = (label: string): number => {
const match = label.match(/[A-Z]+/);
const match = label.match(/[A-Z0-9]+/);
if (!match || match[0].length !== label.length) throw `Label has to be uppercase alphabet letter but is "${label}"`;

const col = label
Expand Down

0 comments on commit b4b09f0

Please sign in to comment.