Fixes #37 -- don't ignore leading and trailing underscores and dashes
Add test
Merge pull request #105 from gscshoyru/better-rulename-parsing

Fixes #37 -- don't ignore leading and trailing underscores and dashes