Fix the silly "no change" message
This commit is contained in:
parent
a35de85eda
commit
08b01c00f3
1 changed files with 3 additions and 2 deletions
|
@ -73,11 +73,12 @@ def calculate_score_and_find_operators(text):
|
|||
if not found:
|
||||
break
|
||||
|
||||
if text.endswith(':'):
|
||||
text = text[:-1]
|
||||
|
||||
did_change = original_text != text
|
||||
if did_change:
|
||||
# Strip the trailing :
|
||||
if text.endswith(':'):
|
||||
text = text[:-1]
|
||||
return score, text
|
||||
else:
|
||||
return None, None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue