Skip to content

Commit fe57793

Browse files
committed
Merge branch 'master' of https://github.com/linlinjava/litemall
2 parents ff0d5d0 + 52a3178 commit fe57793

File tree

3 files changed

+6
-28
lines changed

3 files changed

+6
-28
lines changed

litemall-db/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<dependency>
5858
<groupId>mysql</groupId>
5959
<artifactId>mysql-connector-java</artifactId>
60-
<version>8.0.16</version>
60+
<version>8.0.28</version>
6161
</dependency>
6262
<dependency>
6363
<groupId>com.itfsw</groupId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
<dependency>
8787
<groupId>mysql</groupId>
8888
<artifactId>mysql-connector-java</artifactId>
89-
<version>8.0.16</version>
89+
<version>8.0.28</version>
9090
</dependency>
9191

9292
<dependency>

renard-wx/lib/wxParse/showdown.js

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,29 +1157,7 @@ showdown.subParser('anchors', function (text, options, globals) {
11571157
};
11581158

11591159
// First, handle reference-style links: [link text] [id]
1160-
/*
1161-
text = text.replace(/
1162-
( // wrap whole match in $1
1163-
\[
1164-
(
1165-
(?:
1166-
\[[^\]]*\] // allow brackets nested one level
1167-
|
1168-
[^\[] // or anything else
1169-
)*
1170-
)
1171-
\]
1172-
1173-
[ ]? // one optional space
1174-
(?:\n[ ]*)? // one optional newline followed by spaces
1175-
1176-
\[
1177-
(.*?) // id = $3
1178-
\]
1179-
)()()()() // pad remaining backreferences
1180-
/g,_DoAnchors_callback);
1181-
*/
1182-
text = text.replace(/(\[((?:\[[^\]]*]|[^\[\]])*)][ ]?(?:\n[ ]*)?\[(.*?)])()()()()/g, writeAnchorTag);
1160+
text = text.replace(/(\[[^\]\n]+\]\s*){2}/g, writeAnchorTag);
11831161

11841162
//
11851163
// Next, inline-style links: [link text](url "optional title")
@@ -1241,10 +1219,10 @@ showdown.subParser('autoLinks', function (text, options, globals) {
12411219

12421220
text = globals.converter._dispatch('autoLinks.before', text, options, globals);
12431221

1244-
var simpleURLRegex = /\b(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+)(?=\s|$)(?!["<>])/gi,
1222+
var simpleURLRegex = /\b(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+)(?=\b)(?![^<>]*>)/gi,
12451223
delimUrlRegex = /<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)>/gi,
1246-
simpleMailRegex = /(?:^|[ \n\t])([A-Za-z0-9!#$%&'*+-/=?^_`\{|}~\.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?:$|[ \n\t])/gi,
1247-
delimMailRegex = /<(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi;
1224+
simpleMailRegex = /(?:\b)([\w\d\.\-\+]{1,256}\@[\w\d\.\-\+]{1,256}\.\w{1,24}+)(?:\b)/gi,
1225+
delimMailRegex = /<(?:mailto:)?([\w\d\.\-\+]{1,256}\@[\w\d\.\-\+]{1,256}\.\w{1,24})>/gi;
12481226

12491227
text = text.replace(delimUrlRegex, replaceLink);
12501228
text = text.replace(delimMailRegex, replaceMail);

0 commit comments

Comments
 (0)