Skip to content

Commit

Permalink
fix: v-drag component without selfclose, close #1959
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Nov 30, 2024
1 parent 207a000 commit 70412b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/composables/useDragElements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function useDragElementsUpdater(no: number) {

section = type === 'prop'
// eslint-disable-next-line regexp/no-super-linear-backtracking
? section.replace(/<(v-?drag-?\w*)(.*?)(\/)?>/gi, (full, tag, attrs, selfClose, index) => {
? section.replace(/<(v-?drag-?\w*)(.*?)(\/)?>/gi, (full, tag, attrs, selfClose = '', index) => {
if (index === idx) {
replaced = true
const posMatch = attrs.match(/pos=".*?"/)
Expand Down

0 comments on commit 70412b0

Please sign in to comment.