Skip to content

Instantly share code, notes, and snippets.

@chocolatkey
Last active January 10, 2021 23:50
Show Gist options
  • Save chocolatkey/f532bd8d617e0c2353c1e82ee72a7193 to your computer and use it in GitHub Desktop.
Save chocolatkey/f532bd8d617e0c2353c1e82ee72a7193 to your computer and use it in GitHub Desktop.
Stimulus.JS 2.0.0 target upgrade from 1.x

Easy to do in VS Code global search

Search: data-target="([\w\d]+)\.([\w\d]+)"

Replace: data-$1-target="$2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment