From dd902d6105c53eea0fd82d68585c36a51c2e01f6 Mon Sep 17 00:00:00 2001 From: Sam Mousa Date: Fri, 21 Feb 2025 10:34:05 +0100 Subject: [PATCH] fix: return type for getPattern should not include undefined --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index 3e069af..4dc6061 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -401,7 +401,7 @@ class Sequence{ * * 1/2/4 */ -export const getPattern = (str: string): string | undefined => { +export const getPattern = (str: string): string => { initialize(); str = asciifold(str);