Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
sudongyuer committed Oct 28, 2022
1 parent 8bb3c15 commit e6359fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared-common/src/index.ts
@@ -1,5 +1,5 @@
import type { UnoGenerator } from '@unocss/core'
import { isAttributifySelector, regexClassGroup } from '@unocss/core'
import { e, isAttributifySelector, regexClassGroup } from '@unocss/core'
import MagicString from 'magic-string'

// https://github.com/dsblv/string-replace-async/blob/main/index.js
Expand Down Expand Up @@ -88,7 +88,7 @@ export function getMatchedPositions(code: string, matched: string[], hasVariantG
return
const start = match.index! + escaped.length + bodyIndex
const end = start + value.length
result.push([start, end, `[${name}="${value}"]`])
result.push([start, end, `[${e(name)}="${e(value)}"]`])
})
})

Expand Down

0 comments on commit e6359fa

Please sign in to comment.