Task: Implement a Name Validation Function with Hyphen Support
Task: Implement a Name Validation Function with Hyphen Support: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript module that exports a name validation function using a regular expression. The regex must validate names that:
Part of PrimeIntellect/Terminal-Lego-15k.