Skip to content

Commit

Permalink
Fix PR linking after markup change (OctoLinker#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbuck authored Dec 1, 2018
1 parent 2231f4a commit 0c1074a
Show file tree
Hide file tree
Showing 8 changed files with 2,471 additions and 1,459 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

576 changes: 371 additions & 205 deletions packages/blob-reader/fixtures/github.com/issue/code.html

Large diffs are not rendered by default.

1,043 changes: 670 additions & 373 deletions packages/blob-reader/fixtures/github.com/pull/comments.html

Large diffs are not rendered by default.

653 changes: 419 additions & 234 deletions packages/blob-reader/fixtures/github.com/pull/diff.html

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion packages/blob-reader/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ function getPath(el) {
// When current page is a diff view get path from "View" button
let ret = $('.file-actions a', el.parentElement.parentElement)
.filter(function() {
return $(this).text() === 'View';
return (
$(this)
.text()
.trim() === 'View file'
);
})
.attr('href');

Expand Down

0 comments on commit 0c1074a

Please sign in to comment.