Skip to content

Commit 87fe527

Browse files
committed
Catch brackets around client's name
1 parent c11a8ea commit 87fe527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

replace-string-python/transcript_regex_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def censor_bad_words(message):
2121

2222
def censor_clients(user):
2323
for client in CLIENTS:
24-
user = re.sub(rf"{client}", "Client", user)
24+
user = re.sub(rf"\[{client}\]", "Client", user)
2525
return user
2626

2727

0 commit comments

Comments
 (0)