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

find: don't output useless bold formatting for empty replacement #2066

Merged
merged 1 commit into from
May 23, 2021

Conversation

dgw
Copy link
Member

@dgw dgw commented May 15, 2021

Description

Tin. I did a s/something // replacement to delete an extra word recently and realized that the line contained two useless bold formatting bytes anyway, because that's how the logic was written and I didn't think of this case during review of #2014.

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

@dgw dgw added this to the 7.1.0 milestone May 15, 2021
@dgw dgw requested a review from a team May 15, 2021 05:38
Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

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

Yeah OK it's a good idea.

sopel/modules/find.py Show resolved Hide resolved
@dgw
Copy link
Member Author

dgw commented May 21, 2021

@Exirel I don't mind having whitespace- or control-code-only changes as edge cases. For the intended class of uses (deleting repeated words or other extra characters), this works just fine, and doesn't introduce any bold formatting where it wasn't already.

Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

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

Alright, let's move on!

@dgw dgw merged commit 0a6e5ee into master May 23, 2021
@dgw dgw deleted the find-no-empty-bold branch May 23, 2021 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants