Issue #2: RegExp as a definition validator