fitzgen / glob-to-regexp

Convert a glob to a regular expression
152 stars 23 forks source link

Refactored index.js #1

Closed LarryBattle closed 11 years ago

LarryBattle commented 11 years ago

It's better to use a switch condition instead of making multiple calls to .replace().

fitzgen commented 11 years ago

Thanks :)