From e7c41ece774d9d73e2f83af797ccf73cbbf4a266 Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Thu, 17 Oct 2024 11:02:44 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=BD=20Lowercase=20DOI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/mighty-houses-whisper.md | 5 +++++ src/utils.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/mighty-houses-whisper.md diff --git a/.changeset/mighty-houses-whisper.md b/.changeset/mighty-houses-whisper.md new file mode 100644 index 0000000..2fe93ca --- /dev/null +++ b/.changeset/mighty-houses-whisper.md @@ -0,0 +1,5 @@ +--- +"crossref-utils": patch +--- + +Lowercase DOI diff --git a/src/utils.ts b/src/utils.ts index e2b60d4..eac7c66 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -24,8 +24,8 @@ export function e(name: string, attributes = {}, children?: string | any[]): Ele // For letters and numbers that conflict, the letters were eliminated: // 0 not O/Q, 1 not I/L, 2 not Z, 5 not S, 8 not B -const alpha = 'ACDEFGHJKMNPRTUVWXY'; -const numbers = '0123456789'; +const alpha = 'acdefghjkmnprtuvwxy'; +const numbers = '23456789'; const nanoidAZ = customAlphabet(alpha, 4); const nanoidAZ9 = customAlphabet(numbers, 4);