mirror of
https://github.com/typecho/typecho.git
synced 2025-01-17 04:28:17 +01:00
update hyperdown
This commit is contained in:
parent
24bd3ab367
commit
efc5bf5c51
File diff suppressed because one or more lines are too long
@ -287,7 +287,7 @@
|
||||
text = this.parseInlineCallback(text);
|
||||
// autolink url
|
||||
if (enableAutoLink) {
|
||||
text = text.replace(/(^|[^\"])(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\b([-a-zA-Z0-9()@:%_\+.~#?&\/=]*)|(?:mailto:)?[_a-z0-9-\.\+]+@[_\w-]+(?:\.[a-z]{2,})+)($|[^\"])/g, (...matches) => {
|
||||
text = text.replace(/(^|[^\"])(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\b([-a-zA-Z0-9@:%_\+.~#?&\/=]*)|(?:mailto:)?[_a-z0-9-\.\+]+@[_\w-]+(?:\.[a-z]{2,})+)($|[^\"])/g, (...matches) => {
|
||||
var link, url;
|
||||
url = this.cleanUrl(matches[2]);
|
||||
link = this.call('parseLink', matches[2]);
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user