rails/cache_digests — pull request #21 by balexand (2012-12-11 23:03:03+00:00)
Title: Match non-whitespace characters instead of non-space characters

This change fixes an issue with HAML (#8), but it works equally well with ERB. When parsing this line of HAML:

-# Template Dependency: things/_thing

The old pattern would match: `things/_thing\n` (trailing newline) and the new pattern matches `things/_thing`.

I didn't write a test since this seems like a trivial change, but I will if you want one.