diff --git a/public/js/index.js b/public/js/index.js index cbfca147a7..5810647296 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1602,9 +1602,9 @@ function initCodeView() { $("html, body").scrollTop($first.offset().top - 200); return; } - m = window.location.hash.match(/^#(L\d+)$/); + m = window.location.hash.match(/^#(L|n)(\d+)$/); if (m) { - $first = $list.filter('.' + m[1]); + $first = $list.filter('.L' + m[2]); selectRange($list, $first); $("html, body").scrollTop($first.offset().top - 200); }