Skip to content

Commit 4d098da

Browse files
authored
fix(to-destructuring): fix incorrect regexp (#18)
1 parent db747d2 commit 4d098da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/to-destructuring.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Command } from '../types'
22

33
export const toDestructuring: Command = {
44
name: 'to-destructuring',
5-
match: /^\s*[\/:@]\s*(?:to-|2)?(?:destructuring|dest)?$/i,
5+
match: /^\s*[\/:@]\s*(?:to-|2)(?:destructuring|dest)$/i,
66
action(ctx) {
77
const node = ctx.findNodeBelow(
88
'VariableDeclaration',

0 commit comments

Comments
 (0)