allow empty regex for file validation

Signed-off-by: Kvin Nguyen <k.nguyen@thecodingmachine.com>