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

Update squat logic to address bugs. #400

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Update squat logic to address bugs. #400

merged 1 commit into from
Feb 22, 2023

Conversation

jpinz
Copy link
Member

@jpinz jpinz commented Feb 21, 2023

  • Remove SeparatorRemovedMutator from the list of BaseMutators as it was causing problems and usually doesn't catch squats. Squats that would be caught by it are also caught by the prefix or suffix mutator.
  • Overrode the SeparatorChangedMutator for PyPi as PyPi considers - and _ to be the same character. So just removed _ from the list. There might be a better way of doing this, but I haven't thought of one yet.
  • Fixed issues with the DuplicatorMutator that was giving the original name back as a mutated one.

…s causing problems and usually doesn't catch squats. Squats that would be caught by it are also caught by the prefix or suffix mutator.

Overrode the SeparatorChangedMutator for PyPi as PyPi considers - and _ to be the same character. So just removed _ from the list.
Fixed issues with the DuplicatorMutator that was giving the original name back as a mutated one.
@jpinz jpinz added the bug Something isn't working label Feb 21, 2023
@jpinz jpinz requested a review from gfs February 21, 2023 21:03
@jpinz jpinz self-assigned this Feb 21, 2023
Copy link
Contributor

@gfs gfs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks simple enough.

@jpinz jpinz merged commit 4c84c91 into main Feb 22, 2023
@jpinz jpinz deleted the jupinzer/typosquat_fixes branch February 22, 2023 16:42
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 this pull request may close these issues.

2 participants