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

Improve Multiattack parsing #39

Merged
merged 1 commit into from
Sep 23, 2021
Merged

Improve Multiattack parsing #39

merged 1 commit into from
Sep 23, 2021

Conversation

Merudo
Copy link
Contributor

@Merudo Merudo commented Sep 20, 2021

- Remove all HTML tags before parsing
- Replace ` ` by space
- Remove trailing whitespaces
- Close Stendarpaval#38
Copy link
Owner

@Stendarpaval Stendarpaval left a comment

Choose a reason for hiding this comment

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

A nice, clean method of removing the influence of unexpected and/or unwanted HTML tags from interfering with multiattack parsing.

However, I prefer keeping lines 21 through 23 in, since they not only remove the trailing paragraph tag, but also the period at the end of the sentence. I vaguely remember that that period also causes issues with parsing multiattacks correctly, hence its removal.

So until I have time to further refactor the parsing algorithm, I prefer leaving that in. I'll probably merge your commit and then re-add these lines in the next commit.

@Stendarpaval Stendarpaval merged commit 52822b1 into Stendarpaval:main Sep 23, 2021
@Merudo
Copy link
Contributor Author

Merudo commented Sep 23, 2021

Awesome!

PR #41 adds back the removal of the last period, sorry for changing it.

@Stendarpaval
Copy link
Owner

No worries! As you can read in my reply in PR #41, it's already taken care of. Thanks for helping me improve Mob Attack Tool :)

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