Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed May 13, 2024
1 parent 150cde7 commit 30c4d45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/transformer-directives/src/apply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,5 @@ function removeQuotes(value: string) {
}

function removeComments(value: string) {
return value.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/gm, '$1')
return value.replace(/\/\*[\s\S]*?\*\//g, '$1')
}
6 changes: 3 additions & 3 deletions test/transformer-directives.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ describe('transformer-directives', () => {
background-color: rgb(255 255 255 / var(--un-bg-opacity));
}
.btn:hover {
--un-bg-opacity: 1;
background-color: rgb(59 130 246 / var(--un-bg-opacity));
border-width: 1px;
}
.btn:hover {
border-width: 1px;
--un-bg-opacity: 1;
background-color: rgb(59 130 246 / var(--un-bg-opacity));
}
"
`)
Expand Down

0 comments on commit 30c4d45

Please sign in to comment.