Skip to content

Commit c223c71

Browse files
committed
Fix regexp for Python 3.7
1 parent d854a1e commit c223c71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rivescript/brain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def reply_regexp(self, user, regexp):
461461
'(?:' + pipes + r'|(?:\\s|\\b))', regexp)
462462

463463
# _ wildcards can't match numbers!
464-
regexp = re.sub(RE.literal_w, r'[^\s\d]', regexp)
464+
regexp = re.sub(RE.literal_w, '[^\s\d]', regexp)
465465

466466
# Filter in arrays.
467467
arrays = re.findall(RE.array, regexp)

0 commit comments

Comments
 (0)