Browse Source

Merge pull request #2 from miguelfreitas/blaster

merge official blaster updates
theme-nin-by-default
D4708 4 years ago committed by GitHub
parent
commit
a39f77d648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      js/twister_formatpost.js

11
js/twister_formatpost.js

@ -720,6 +720,17 @@ function htmlFormatMsg(msg, opt) {
msg = msgAddHtmlEntity(msg, i, i + str.length, msg = msgAddHtmlEntity(msg, i, i + str.length,
newHtmlEntityLink(twister.tmpl.linkShortened, str, str)); newHtmlEntityLink(twister.tmpl.linkShortened, str, str));
i = msg.i; i = msg.i;
} else if (['ipfs://', 'ipns://'].indexOf(msg.str.slice(i, i + 7).toLowerCase()) >= 0
&& stopCharsRight.indexOf(msg.str[i + 7]) === -1) {
j = getSubStrEnd(msg.str, i + 7, stopCharsRight, false, stopCharsTrailingUrl);
if (j > i + 6) {
str = msg.str.slice(i, j + 1);
msg = msgAddHtmlEntity(msg, i, i + str.length,
newHtmlEntityLink(_htmlFormatMsgLinkTemplateExternal,
str, str)
);
i = msg.i;
}
} }
} }

Loading…
Cancel
Save