Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefetch urls in background and insert "real" anchor links #543

Merged
merged 18 commits into from
Mar 11, 2019
Merged
Prev Previous commit
Next Next commit
Split head from base sha in url
  • Loading branch information
Stefan Buck committed Feb 15, 2019
commit f6fc910d8ec9e0315a3500c7f0eae848cfed305c
3 changes: 2 additions & 1 deletion packages/blob-reader/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function mergeRepoAndFilePath(repoPath, filePath) {
const repoUrl = repoPath
.trim()
.split('#')[0]
.replace(/pull\/[0-9]+\/files/, 'blob');
.replace(/pull\/[0-9]+\/files/, 'blob')
.split('..')[0];

return `${repoUrl}/${filePath.trim()}`;
}
Expand Down