|
https://github.com/goldendict/go ... fca89727cc23a5318c30 e, I* h( b: }! {$ c+ ^
6 u% J& G9 U/ D. S' x$ x8 R+ T
4 f- b) G) Y/ l+ U- \- QRegularExpression wordCrossLink( "([\\s\"']href\\s*=)\\s*([\"'])entry://([^>#]*)((?:#[^>]*)?)\\2",2 Q& i8 g! }/ d& v' B
+ QRegularExpression wordCrossLink( "([\\s\"']href\\s*=)\\s*([\"'])entry://([^>#\\g{2}]*?)((?:#[^>]*)?)\\2",
) W: `) ]! L1 x2 a7 D
; E. B, |$ z4 F: u- if( match.lastCapturedIndex() >= 4 )
5 s( g! @! n) s O+ if( match.lastCapturedIndex() >= 4 && !match.captured( 4 ).isEmpty() )
, \8 V1 ^/ f$ g0 z4 P% m1 o) C
9 L, @: Q8 g4 ]6 ?3 @4 F* m. p* o7 \0 p* s. n/ z J
应该对链接处理有改进
# ^! @5 n4 D2 j6 h% J9 m- A3 d/ y% }! K" t9 ?% w6 c
|
评分
-
2
查看全部评分
-
|