Skip to content

Commit 607b799

Browse files
committed
chore: update important regex
1 parent e00d407 commit 607b799

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/styled-system/src/utils/create-transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface CreateTransformOptions {
1111
const isImportant = (value: string) => /!(important)?$/.test(value)
1212

1313
const withoutImportant = (value: string) =>
14-
value.replace(/(!|!important)$/, "").trim()
14+
value.replace(/!(important)?$/, "").trim()
1515

1616
export const tokenToCSSVar =
1717
(scale: ThemeScale, value: any) => (theme: Dict) => {

0 commit comments

Comments
 (0)