[Bug] Custom regex on extension doesn't work
Opened this issue · 0 comments
kana-shii commented
Device information
- Suwayomi-Server version: v1.1.1-r1650
- Server Operating System: Windows 11
- Server Desktop Environment: N/A
- Server JVM version: Java 21
- Client Operating System: Windows 11
- Client Web Browser: Opera GX
Steps to reproduce
- Get an extension with a customizable title regex (will provide here together with the source code)
- Try using a custom regex in the extension. My regex:
(?:\([^()]*\)|\{[^{}]*\}|\[(?:(?!]).)*]|«[^»]*»|〘[^〙]*〙|「[^」]*」|『[^』]*』|≪[^≫]*≫|﹛[^﹜]*﹜|〖[^〖〗]*〗|𖤍.+?𖤍|《[^》]*》|⌜.+?⌝|⟨[^⟩]*⟩|\/official|\/ official|【[^】]*】)
(the newly added part is the【[^】]*】
pattern. You can see the regex doing nothing in the entry: Press Play, Sami【YesungWaifu】and you can see the regex working in the entry: Who Made Me a Princess (Official)
Expected behavior
The regex should work and unnecessary stuff from the title should be removed
Actual behavior
The newly-added patterns don't work
Other details
https://github.com/komikku-app/komikku-extensions/commit/0951e9e6d966238caa431ef057d019bf08d5bd3b (this is the code for the extension
Can't upload the file for the .apk over in github but you guys can @ me in the Suwayomi server for the .apk if needed
just @s_selfish
Fyi: The custom regex always worked out over Mihon. Also, the default regex of the extension works out, but not the custom one.