Skip to content

Commit 29e8a8c

Browse files
committed
Fix the .cahb regex to match underscores surrounded by whitespace
1 parent 12556b2 commit 29e8a8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/gnomeagainsthumanity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ def CAHblackcard(text, message):
3131
def blankfiller(matchobj):
3232
return random.choice(gnomecards['white'])
3333

34-
out = re.sub(r'_', blankfiller, CardText)
34+
out = re.sub(r'\b_\b', blankfiller, CardText)
3535
return out

0 commit comments

Comments
 (0)