We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff839a commit 0fffa7fCopy full SHA for 0fffa7f
api/services/TopicService.js
@@ -15,8 +15,9 @@ module.exports = {
15
var topicName = $(elem).text();
16
var rdOptions = $(elem).attr('rd-options');
17
if(!current) return;
18
+ var absolutePattern = /^https?:\/\//i;
19
var rdrrPattern = /rdrr.io/i;
- if (!rdrrPattern.test(current)) return;
20
+ if (absolutePattern.test(current) && !rdrrPattern.test(current)) return;
21
if (rdOptions === '' || !rdOptions) {
22
$(elem).attr('href', url.resolve(basePath, encodeURIComponent(topicName)) +
23
'?package=' + encodeURIComponent(packageVersion.package_name) +
0 commit comments