fixing #318, modifying regex to check for each condition individually

This fixes #318 by allowing single-character alphanumeric package names.