we can make the two lines a bit simpler as well with 
```coffeescript
match = match.replace new RegExp("\\s(bo|ng)-#{type}"), "data-$1-#{type}"
```