Use an array instend of switch for comparing extensions
Merge pull request #26 from newsocialifecom/patch-2

Use an array instend of switch for comparing extensions