Skip to content

Commit

Permalink
Merge pull request #27 from rdovgan/unique_mnem
Browse files Browse the repository at this point in the history
#26 Changed words validation method to make it unique
  • Loading branch information
rdovgan authored May 1, 2024
2 parents 938e3f6 + 789a5e8 commit faca4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def validate_words(words):
if word in mnemonic_words:
for j in range(i + 1, min(i + 12, len(words))):
next_word = words[j].lower()
if next_word not in mnemonic_words:
if next_word not in mnemonic_words or next_word in words[i:j-1]:
i = j
break
else:
Expand Down

0 comments on commit faca4b5

Please sign in to comment.