Skip to content

Commit 2db8776

Browse files
committed
Fix bug where py lines with / instead of . were ignored
1 parent 5d3b316 commit 2db8776

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contentscript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ for (var i = 0; i < rows.length; i++) {
7878

7979
// if we have a valid python config, turn it into a path
8080
// ensure it has a / in it so it isn't a 3rd party library
81-
if (config != "" && (/\./.test(config))) {
81+
if (config != "" && (/\./.test(config) || /\//.test(config))) {
8282
config = config.replace(/['"]/g,"");
8383
var path = config.replace(/\./g,"/");
8484
var parts = path.split("/");

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Github linkify for CMSSW",
33
"description": "Turns #include statments in C++ files, and import X/from X import Y/process.load(XXX.YYY.ZZZ_cff) in python config files, into links when browing CMSSW on Github.",
4-
"version": "0.2.5",
4+
"version": "0.2.6",
55
"content_scripts": [
66
{
77
"matches": [

0 commit comments

Comments
 (0)