Skip to content

Commit cae4bf9

Browse files
Joshua-AndersonMatthew Fisher
authored andcommitted
fix(models): hypens -> hyphens (#840)
1 parent e317707 commit cae4bf9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

rootfs/api/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def validate_label(value):
3131
"""
3232
match = re.match(r'^[a-z0-9-]+$', value)
3333
if not match:
34-
raise ValidationError("Can only contain a-z (lowercase), 0-9 and hypens")
34+
raise ValidationError("Can only contain a-z (lowercase), 0-9 and hyphens")
3535

3636

3737
class AuditedModel(models.Model):

rootfs/api/models/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def validate_id_is_docker_compatible(value):
3535
"""
3636
match = re.match(r'^[a-z0-9-]+$', value)
3737
if not match:
38-
raise ValidationError("App name can only contain a-z (lowercase), 0-9 and hypens")
38+
raise ValidationError("App name can only contain a-z (lowercase), 0-9 and hyphens")
3939

4040

4141
def validate_app_structure(value):

rootfs/api/tests/test_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_app_errors(self, mock_requests):
153153
response = self.client.post(url, body)
154154
self.assertContains(
155155
response,
156-
'App name can only contain a-z (lowercase), 0-9 and hypens',
156+
'App name can only contain a-z (lowercase), 0-9 and hyphens',
157157
status_code=400
158158
)
159159
url = '/v2/apps'

0 commit comments

Comments
 (0)