Allow dashes in extend selector

Closes #4