From 339a4abf8424070b9a05acf85307185405e0cbe3 Mon Sep 17 00:00:00 2001 From: shadow-light <42055707+shadow-light@users.noreply.github.com> Date: Tue, 6 Jun 2023 10:22:09 +1000 Subject: [PATCH] pattern can be RegExp --- packages/netlify-cms-core/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/netlify-cms-core/index.d.ts b/packages/netlify-cms-core/index.d.ts index 54ca3ec3dd99..c58330aa6349 100644 --- a/packages/netlify-cms-core/index.d.ts +++ b/packages/netlify-cms-core/index.d.ts @@ -63,7 +63,7 @@ declare module 'netlify-cms-core' { label?: string; required?: boolean; hint?: string; - pattern?: [string, string]; + pattern?: [string | RegExp, string]; i18n?: boolean | 'translate' | 'duplicate' | 'none'; media_folder?: string; public_folder?: string;