jaredatch/Custom-Metaboxes-and-Fields-for-WordPress — pull request #323 by GhostToast (2013-07-19 15:04:31+00:00)
Title: better file-extension check, doesn't rely on preg_match

this avoids preg_match altogether. doesn't get tripped by "poorly_named_file.jpg.mp3"