[#20] Make the regex stricter, a file must end with .digit

* Base on code @ichinaski code review