Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 4695d4a

Browse files
committed
Fix inline-style preprocess
1 parent 28648fa commit 4695d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export async function transform(specifier: string, code: string, options: Transf
144144
tpl = await inlineStylePreprocess('#' + key, style.type, tpl)
145145
}
146146
tpl = tpl.replace(
147-
/\: var\(--aleph-inline-style-expr-(\d+)\)/g,
147+
/\:\s*var\(--aleph-inline-style-expr-(\d+)\)/g,
148148
(_, id) => ': ${' + style.exprs[parseInt(id)] + '}'
149149
).replace(
150150
/\/\*%%aleph-inline-style-expr-(\d+)%%\*\//g,

0 commit comments

Comments
 (0)