Skip to content

Commit

Permalink
fix: tweak match duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan committed Aug 19, 2023
1 parent d4c0408 commit e1ca61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export default defineComponent({
guess.matchTypes[i] === 'g'
|| (
guess.matchTypes[i] === 'y'
&& letters.findIndex((l, j) => j > i && l === letter && (matchTypes[j] === 'g' || matchTypes[j] === 'y')) === -1
&& letters.findIndex((l, j) => j !== i && l === letter && (matchTypes[j] === 'g' || matchTypes[j] === 'y')) === -1
)
)
)) > -1) {
Expand Down

0 comments on commit e1ca61a

Please sign in to comment.