From c9cecbea97396a9f8debca75c5e029a8496e02ee Mon Sep 17 00:00:00 2001 From: aron-tw Date: Sun, 19 Dec 2021 20:54:32 +0800 Subject: [PATCH] fix: FontWeight --- src/font-weight.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/font-weight.ts b/src/font-weight.ts index 072d6b588..4f1e5837e 100644 --- a/src/font-weight.ts +++ b/src/font-weight.ts @@ -2,7 +2,7 @@ import { DASH, FONT, FONT_PREFIX, F_PREFIX, WEIGHT } from './constants/css-prope import { Style } from '@master/style'; export class FontWeightStyle extends Style { - static override prefixes = /^f-weight:|f(ont):(thin|extralight|light|regular|medium|semibold|bold|extrabold|heavy)/; + static override prefixes = /^f-weight:|f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|extrabold|heavy)/; static override key = FONT + DASH + WEIGHT; static override unit = ''; static override values = {