-
Notifications
You must be signed in to change notification settings - Fork 100
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
Some dictionaries have a double quote in their stylesheet link. #1585
Comments
I don't think this related code is wrong. goldendict-ng/src/dict/stardict.cc Lines 459 to 464 in 65e51b2
https://regex101.com/r/gVtCyO/1
Upload or provide a download link for this dict. The content before replacement might be malformed. |
@shenlebantongying |
Seems a combination of
InvertedGreedinessOption converts
Without any extra option, and for text |
the syntax As for performance issue, we should not take it too far , the regex match may occupy only 1% of the whole process, |
I agree that For performance, I have no opinion. Making the code reliable first is ok to me too. Maybe I can revise all regex for performance later. |
Describe the bug
Some dictionaries cannot load css because of double quote
Affected Dictionaries
Stardict dictionaries
Expected behavior
Remove the double quote in stylesheet link, and everything works again.
Screenshots
OS and software versions
KDE Plasma 6.0.5
Goldendict-ng 24.05.13.4ac44e9a at 2024-06-14T21:18:58Z
Qt 6.7.1 GCC 14.1.1 20240522 arch linux 6.9.4-arch1-1 x86_64-little_endian-lp64
Flags: MAKE_ZIM_SUPPORT USE_ICONV MAKE_CHINESE_CONVERSION_SUPPORT
The text was updated successfully, but these errors were encountered: