Use correct regex for block names

fixes #1