Allow custom elements to be unformatted

The regex needed to be loosened to allow a dash

There's one more regex with [a-z] instead of [a-z-] but I couldn't figure out what kind of failing test to write for that so I didn't change it.