optimize allowList matching and inline a local assignment
Merge pull request #10 from jdreesen/patch-2

Optimize allowList matching