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

fix: avoid removing multiple dependencies when multiple classes match at the end of the name #35

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

ferrarafer
Copy link
Contributor

Remove lines only for the exact class, not for all the similar classes which matches the target class.

For example, this avoid to delete SmartErrorDialog and ErrorDialog on the same execution because both classes ended with ErrorDialog. So, before the fix, if I run the following command

stacked delete dialog error

was going to delete any dialog which ends with ErrorDialog, in the case presented, ErrorDialog and SmartErrorDialog.

Remove lines only for the exact class, not for all the similar classes
which matches the target class.

For example, this avoid to delete SmartErrorDialog and ErrorDialog on
the same execution because both classes ended with ErrorDialog.
@ferrarafer ferrarafer merged commit 4b0665a into pre-release Jul 18, 2023
@ferrarafer ferrarafer deleted the fix/delete-multiple-dependencies-by-mistake branch July 18, 2023 01:52
FilledStacks pushed a commit that referenced this pull request Jul 18, 2023
# [1.11.0](v1.10.0...v1.11.0) (2023-07-18)

### Bug Fixes

* avoid removing multiple dependencies when multiple classes match at the end of the name ([#35](#35)) ([4b0665a](4b0665a))

### Features

* add delete dialog command ([#34](#34)) ([650d8b8](650d8b8))
@FilledStacks
Copy link
Contributor

🎉 This PR is included in version 1.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants