mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 14:43:52 +03:00
bug fixed
This commit is contained in:
parent
b689bb6180
commit
caa61a2b99
1 changed files with 1 additions and 1 deletions
2
public/vendor/plugins/autolink/autolink.js
vendored
2
public/vendor/plugins/autolink/autolink.js
vendored
|
@ -26,7 +26,7 @@
|
||||||
re.lastIndex = 0;
|
re.lastIndex = 0;
|
||||||
var results = re.exec(node.textContent);
|
var results = re.exec(node.textContent);
|
||||||
if(results !== null) {
|
if(results !== null) {
|
||||||
if($(node).parents().filter('pre>code').length === 0) {
|
if($(node).parents().filter('code').length === 0) {
|
||||||
$(node).replaceWith(
|
$(node).replaceWith(
|
||||||
$('<span />').html(
|
$('<span />').html(
|
||||||
node.nodeValue.replace(re, '<a href="$1">$1</a>')
|
node.nodeValue.replace(re, '<a href="$1">$1</a>')
|
||||||
|
|
Loading…
Reference in a new issue