Skip to content

Commit ee01324

Browse files
committed
HH-137697 rename asterisk_processing function
1 parent 0272335 commit ee01324

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rivescript/brain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def reply_regexp(self, user, regexp):
451451
if regexp[:2] == '* ':
452452
regexp = regexp.replace(regexp[:2], '(|* )')
453453

454-
regexp = self.asterix_processing(regexp)
454+
regexp = self.asterisk_processing(regexp)
455455

456456
# Simple replacements.
457457
regexp = regexp.replace('*', '(.*?)') # Convert * into (.*?)
@@ -865,7 +865,7 @@ def default_history(self):
865865
"reply": ["undefined"] * 9,
866866
}
867867

868-
def asterix_processing(self, regexp):
868+
def asterisk_processing(self, regexp):
869869
for i in range(len(regexp)):
870870
if regexp[i] == '*':
871871
if (((regexp[i] == regexp[-1]) and regexp[-2].isalpha()) or

0 commit comments

Comments
 (0)