Skip to content

Instantly share code, notes, and snippets.

View benmurden's full-sized avatar

Ben Murden benmurden

  • Scoville K.K.
  • Kyoto, Japan
View GitHub Profile
@benmurden
benmurden / ember-each-1.12-helper.txt
Last active September 2, 2015 02:41
Ember.js 1.12 each deprecation RegEx helper
\{\{\s*#each ([a-zA-Z0-9]+) in ([a-zA-Z0-9]+)( itemController="[a-zA-Z0-9]+")?\s*\}\}
{{#each \2\3 as |\1|}}
## Or in vim
:%s/\{\{\s*#each ([a-zA-Z0-9]+) in ([a-zA-Z0-9]+)( itemController="[a-zA-Z0-9]+")?\s*\}\}/{{#each \2\3 as |\1|}}/g