From c4239818ed97091b10b1b18d256fa07d0082e3eb Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 2 Aug 2026 23:56:25 -0700 Subject: [PATCH] Fix hex regex. --- src/lib/convert/hex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/convert/hex.ts b/src/lib/convert/hex.ts index f148e60..df6e08c 100644 --- a/src/lib/convert/hex.ts +++ b/src/lib/convert/hex.ts @@ -9,7 +9,7 @@ export const hex = Object.freeze({ * @returns True if input is hex, else false */ is (input: unknown): input is Hex { - return typeof input === 'string' && /([0-9a-f]{2})+/.test(input) + return typeof input === 'string' && /^([0-9a-f]{2})+$/.test(input) }, /** -- 2.52.0