airdcpp / airdcpp-windows

http://www.airdcpp.net
GNU General Public License v3.0
80 stars 19 forks source link

🐛 [Bug]: "Require an exact match" does not actually require an exact match #99

Closed ghost closed 4 months ago

ghost commented 10 months ago

Prerequisites

Describe the issue

Autosearch -> Search string "test" -> Advanced tab -> Check Require an exact match. Autosearch downloads anything named "test" in any case, like Test, tesT, tEst, etc.

Expected behavior

When Require an exact match is checked, Autosearch should require an exact match.

Actual behavior

When Require an exact match is checked, Autosearch doesn't require an exact match.

Steps to reproduce the behavior if needed

Autosearch -> Search string "test" -> Advanced tab -> Check Require an exact match. Autosearch downloads anything named "test" in any case, like Test, tesT, tEst, etc.

Screenshot

No response

Crash log

No response

AirDC++ version and architecture (x86 or x64)

4.21 x64

Operating System name, version and architecture

Windows 10 Enterprise 10.0.19045 Build 19045

Additional information

No response

Sopor commented 10 months ago

If you open a search window and search for test or Test. Do you get different result?

I think you should be able to use Use a custom matcher for the search results because it do support regexp.

You can use regexp in a regular search windows and file lists too.

ghost commented 9 months ago

If you open a search window and search for test or Test. Do you get different result?

No idea. I'm talking about AutoSearch not Search. They are two completely different things.

Sopor commented 9 months ago

No, Search and AutoSearch do the exact same thing.

Search and Auto search are both case insensitive, but as i explained you could try use Use a custom matcher for the search results because it supports RegEx.