[fix] Added an option to allow urls without extensions. Fixes #21