Refine domain part validation code
Bumped to version 0.3