Skip to content

Commit

Permalink
fix(to-destructuring): fix incorrect regexp (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
9romise authored May 15, 2024
1 parent db747d2 commit 4d098da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/to-destructuring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Command } from '../types'

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

0 comments on commit 4d098da

Please sign in to comment.