diff --git a/js/common.js b/js/common.js index 8813243a72..6c20ad18ef 100644 --- a/js/common.js +++ b/js/common.js @@ -333,7 +333,7 @@ $(document).ready(function() { $('.refentry code.parameter').click(function(event) { - var id = $(this).text().replace(/^[&$]{0,2}/g, ''); + var id = $(this).text().replace(/^&?(\.\.\.)?\$?/g, ''); var offsetTop = $('.parameters, .options').find('.parameter').filter(function() { return $(this).text() === id; // https://bugs.php.net/bug.php?id=74493 }).offset().top - 52;