aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-09-04 14:22:07 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-09-04 14:22:07 +0800
commitcaa61a2b99de5dbed8b0976f886a607d0f8ebb16 (patch)
tree59080f60ab2e670fc854572155308f91a3c8bb35 /public
parentb689bb61804fddfd2df8df7250522b0fc227484e (diff)
downloadgitea-caa61a2b99de5dbed8b0976f886a607d0f8ebb16.tar.gz
gitea-caa61a2b99de5dbed8b0976f886a607d0f8ebb16.zip
bug fixed
Diffstat (limited to 'public')
-rw-r--r--public/vendor/plugins/autolink/autolink.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/vendor/plugins/autolink/autolink.js b/public/vendor/plugins/autolink/autolink.js
index 039cd7db24..2993954ab6 100644
--- a/public/vendor/plugins/autolink/autolink.js
+++ b/public/vendor/plugins/autolink/autolink.js
@@ -26,7 +26,7 @@
re.lastIndex = 0;
var results = re.exec(node.textContent);
if(results !== null) {
- if($(node).parents().filter('pre>code').length === 0) {
+ if($(node).parents().filter('code').length === 0) {
$(node).replaceWith(
$('<span />').html(
node.nodeValue.replace(re, '<a href="$1">$1</a>')