Skip to content

Commit d1cc950

Browse files
author
Luka Bratos
committed
Interest name can include dash character
1 parent db4a6af commit d1cc950

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pusher_push_notifications/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@ def publish(self, interests, publish_body):
119119
INTEREST_MAX_LENGTH,
120120
)
121121
)
122-
if '-' in interest:
123-
raise ValueError(
124-
'Interest "{}" contains a "-" which is forbidden. '.format(
125-
interest,
126-
)
127-
+ 'have you considered using a "_" instead?'
128-
)
129122
if not INTEREST_REGEX.match(interest):
130123
raise ValueError(
131124
'Interest "{}" contains a forbidden character. '.format(

0 commit comments

Comments
 (0)