Partials with numbers in the filename can be used as dependencies automatically

See rails/rails#10377

The regular expression would not match templates with numbers in the filename. For example:

```ruby
<%= render 'shared/layout_1' %>
```

Would result in (in the log):

`Couldn't find template for digesting: shared/layout_.html`

... and the dependency would not be made.