def clean_name(self):
        name = self.cleaned_data['name']
        if not re.match(r'^[a-zA-Z0-9-_]+$', name):
            raise forms.ValidationError(
                _("Sorry, field names can only contain letters, numbers, hyphens (-) and underscores (_)"))
        return name
Returns a compressed version of the given text, using the same
dataset/ETHPy150Open treeio/treeio/treeio/identities/forms.py/ContactFieldForm.clean_name--crossover with--dataset/ETHPy150Open skibblenybbles/django-daydreamer/daydreamer/tests/views/behaviors/gzip/base.py/TestCase.compress