You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error is that to find the longest match, the first value in the list is taken, and then you form a sublist, but there are no values in this sublist.
Test results:
password: [justshort]
matches: 2
match index=0: Match{pattern=Dictionary, i=0, j=3, token=just, dictionaryName='us_tv_and_film'}
match index=1: Match{pattern=Dictionary, i=4, j=8, token=short, dictionaryName='english_wikipedia'}
matches sublist: 0
first longest=Match{pattern=Dictionary, i=0, j=3, token=just, dictionaryName='us_tv_and_film'}
last longest=Match{pattern=Dictionary, i=0, j=3, token=just, dictionaryName='us_tv_and_film'}
When forming sequence.subList, the toIndex parameter of the sublist method was specified incorrectly.
Test results:
password: [justshort]
matches: 2
match index=0: Match{pattern=Dictionary, i=0, j=3, token=just, dictionaryName='us_tv_and_film'}
match index=1: Match{pattern=Dictionary, i=4, j=8, token=short, dictionaryName='english_wikipedia'}
matches sublist: 1
match index=0: Match{pattern=Dictionary, i=4, j=8, token=short, dictionaryName='english_wikipedia'}
first longest=Match{pattern=Dictionary, i=0, j=3, token=just, dictionaryName='us_tv_and_film'}
replaced longest by match: Match{pattern=Dictionary, i=4, j=8, token=short, dictionaryName='english_wikipedia'}
last longest=Match{pattern=Dictionary, i=4, j=8, token=short, dictionaryName='english_wikipedia'}
The error is that to find the longest match, the first value in the list is taken, and then you form a sublist, but there are no values in this sublist.
Test results:
When forming sequence.subList, the toIndex parameter of the sublist method was specified incorrectly.
Test results:
Fixed in pull request #83
The text was updated successfully, but these errors were encountered: