]> ruderich.org/simon Gitweb - blhc/blhc.git/commit
Use hashes instead of regexps to check file extensions.
authorSimon Ruderich <simon@ruderich.org>
Mon, 26 Mar 2012 00:19:34 +0000 (02:19 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 26 Mar 2012 00:19:34 +0000 (02:19 +0200)
commit5f36c99fe17184b3b10edf4d89b8d8f82cedd175
treee24ce851d9d28003fe41872c8e484dead32aca3b
parentfbc6886e558ccf337cf7dd1eaa9a647c44ac2118
Use hashes instead of regexps to check file extensions.

Hashes are much faster. Additionally this fixes detecting ".c++" files
and false positives caused by files with double extensions (e.g.
".cpp.o") which were not correctly ignored.
bin/blhc
t/logs/bad
t/logs/c++
t/logs/cc
t/logs/gcc
t/logs/good
t/tests.t