From 42b06db4a55e5e8f9ab8fc96bf5de2b4620894bc Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Thu, 23 Oct 2025 14:41:38 +0200 Subject: [PATCH] refactor: change exported functions to internal for numeric and whitespace checks --- src/primitives.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/primitives.ts b/src/primitives.ts index 868226a..e61f0dc 100644 --- a/src/primitives.ts +++ b/src/primitives.ts @@ -94,12 +94,12 @@ export function isSafeUnquoted(value: string, delimiter: string = COMMA): boolea return true } -export function isNumericLike(value: string): boolean { +function isNumericLike(value: string): boolean { // Match numbers like: 42, -3.14, 1e-6, 05, etc. return /^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?$/i.test(value) || /^0\d+$/.test(value) } -export function isPaddedWithWhitespace(value: string): boolean { +function isPaddedWithWhitespace(value: string): boolean { return value !== value.trim() }