Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separator Matcher doesn't catch first separator #193

Closed
MrWook opened this issue May 6, 2023 · 4 comments · Fixed by #195
Closed

Separator Matcher doesn't catch first separator #193

MrWook opened this issue May 6, 2023 · 4 comments · Fixed by #195
Labels
bug Something isn't working

Comments

@MrWook
Copy link
Collaborator

MrWook commented May 6, 2023

@domosapien i wanted to publish the new major version and tested everything before and it seems like some of your later changes broke the separater matcher a little bit. Your video from #115 doesn't seem the source of true anymore as the string buy by beer splits into buy by as bruteforce, as separator and beer as a dictionary.
I think the first approach was a better idea to have specific chars that acts as separators 🤔 What do you think?

@MrWook MrWook added the bug Something isn't working label May 6, 2023
@domosapien
Copy link
Contributor

domosapien commented May 6, 2023 via email

@MrWook
Copy link
Collaborator Author

MrWook commented May 6, 2023

It appears reasonable to check for a specific set of special characters, as the Java port may also be utilizing any special character. However, when adding other languages such as Persian, every character could be considered a special character. Therefore, I propose that we define a fixed set of separators, and trigger them if at least one is present. The suggested separators include:

[
' ',
',',
';',
':',
'|',
'/',
'\\',
'-',
'_',
'.',
]

Naturally, this list should be customizable, allowing users to define their own set of separators or consider all special characters as separators if they prefer.

I also had the opportunity to explore the earlier implementation where you made adjustments to the repeat and brute-force matchers. That version had a significant flaw, as it considered by by a strong password. Consequently, the current implementation appears to be an improvement in this aspect.

@domosapien
Copy link
Contributor

domosapien commented May 6, 2023 via email

@domosapien
Copy link
Contributor

domosapien commented May 7, 2023 via email

@MrWook MrWook linked a pull request May 7, 2023 that will close this issue
@MrWook MrWook closed this as completed May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants