Fix digest regex so other hyphenated files do not fail to load

This prevents stylesheets with hyphenated filenames failing to load, due to the filename being detected incorrectly, e.g. "assets/my-stylesheet.css" => "my.css".