We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 404127d commit 84da4e3Copy full SHA for 84da4e3
root/static/js/syntaxhighlighter.js
@@ -65,7 +65,7 @@ $(function () {
65
if (source.html().length > 500000) {
66
source.children('code').removeClass();
67
}
68
- else if ( lineMatch = document.location.hash.match(/^#L(\d+)$/) ) {
+ else if ( lineMatch = document.location.hash.match(/^#L(\d+(-\d+)?(,\d+(-\d+)?)*)$/) ) {
69
source.attr('data-line', lineMatch[1]);
70
71
// check for 'P{encoded_package_name}' anchor, convert to
0 commit comments