Fix custom property validation

Catches falsely validated custom properties. Previously, there was no
check that a hyphen came after the component name. For example, if the
component name were 'MyComponent', a custom property of
'--MyComponentName' would wrongly pass validation.