update regex to match file extensions with dashes, eg .ruby-version