From 0ed18c8b8a23193d6d5989e3869abbf3cb699e6b Mon Sep 17 00:00:00 2001 From: Ben Jolitz Date: Fri, 4 May 2018 16:33:43 -0700 Subject: [PATCH] remove extraneous backslash --- moto/sns/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/sns/models.py b/moto/sns/models.py index 6ee6c79e..65dcc6cf 100644 --- a/moto/sns/models.py +++ b/moto/sns/models.py @@ -240,7 +240,7 @@ class SNSBackend(BaseBackend): self.sms_attributes.update(attrs) def create_topic(self, name): - fails_constraints = not re.match(r'^[a-zA-Z0-9\_\-]{0,256}$', name) + fails_constraints = not re.match(r'^[a-zA-Z0-9_-]{0,256}$', name) if fails_constraints: raise InvalidParameterValue("Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long.") candidate_topic = Topic(name, self)