From 311a24d3340faae85abf095bb51b695605400c5e Mon Sep 17 00:00:00 2001 From: Bluscream Date: Sun, 18 Aug 2024 19:29:26 +0000 Subject: [PATCH] add boolean format to fullFormats --- src/formats.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/formats.ts b/src/formats.ts index d3cde9b..74e16db 100644 --- a/src/formats.ts +++ b/src/formats.ts @@ -43,6 +43,7 @@ function fmtDef( } export const fullFormats: DefinedFormats = { + boolean: /^(true|false|0|1|yes|no|enabled|disabled|on|off)$/i, // date: http://tools.ietf.org/html/rfc3339#section-5.6 date: fmtDef(date, compareDate), // date-time: http://tools.ietf.org/html/rfc3339#section-5.6