From cc1d517fafb0d1fcf6bf24a8fe011f508ad5f22d Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Thu, 8 Oct 2020 09:33:20 -0400 Subject: [PATCH] Preserve Custom Properties --- packages/core/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 97c9ffdb..9117c5a4 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -266,7 +266,7 @@ const processStyleObject = ( * borderColor => border-color */ const hyphenAndVendorPrefixCssProp = (cssProp: string, vendorProps: any[], vendorPrefix: string) => { - const isVendorPrefixed = cssProp[0] === cssProp[0].toUpperCase(); + const isVendorPrefixed = /^[A-Z]/.test(cssProp); let cssHyphenProp = cssProp .split(/(?=[A-Z])/) .map((g) => g.toLowerCase())