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:
|
if not found:
|
||||||
break
|
break
|
||||||
|
|
||||||
if text.endswith(':'):
|
|
||||||
text = text[:-1]
|
|
||||||
|
|
||||||
did_change = original_text != text
|
did_change = original_text != text
|
||||||
if did_change:
|
if did_change:
|
||||||
|
# Strip the trailing :
|
||||||
|
if text.endswith(':'):
|
||||||
|
text = text[:-1]
|
||||||
return score, text
|
return score, text
|
||||||
else:
|
else:
|
||||||
return None, None
|
return None, None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue