jellyfin-plugin-anidb
jellyfin-plugin-anidb copied to clipboard
Verify that Fuzzy matching is working as intended, and add tests
It is unclear to me whether this code works as expected or not. Review that the generated regex actually is what's intended, and add tests both for the regex generation and the fuzzy matching.
In particular, this looks suspect to me, I would expect the output of this to be ((OVA)|(((OVA)|(OAD))))
, due to sequential .replace.
https://github.com/jellyfin/jellyfin-plugin-anidb/blob/dd298960b7c211c9f54ecd3502bf677664acf863/Jellyfin.Plugin.AniDB/Providers/equals_check.cs#L86-L87
https://github.com/jellyfin/jellyfin-plugin-anidb/blob/dd298960b7c211c9f54ecd3502bf677664acf863/Jellyfin.Plugin.AniDB/Providers/equals_check.cs#L54-L94