We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66248b commit e7d640bCopy full SHA for e7d640b
src/index.ts
@@ -3,6 +3,7 @@ import { VNodeData } from "vue";
3
const pattern = {
4
camel: /-(\w)/g,
5
style: /:(.*)/,
6
+ styleList: /;(?![^(]*\))/g,
7
} as const;
8
9
function camelReplace(_substr: string, match: string) {
@@ -16,7 +17,7 @@ function camelCase(str: string) {
16
17
function parseStyle(style: string) {
18
let styleMap: Record<string, any> = {};
19
- for (let s of style.split(";")) {
20
+ for (let s of style.split(pattern.styleList)) {
21
let [key, val] = s.split(pattern.style);
22
key = key.trim();
23
if (!key) {
0 commit comments