Skip to content

Commit 7ed059d

Browse files
author
Robin Aggleton
committed
Fix bug where indented lines ingored by parsing
1 parent c7c1192 commit 7ed059d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

contentscript.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ function test_py_import(line) {
4444
var py_pattern3 = /import/;
4545
var py_pattern4 = /process.load(.*)/;
4646

47+
line = line.trim();
48+
4749
var config;
4850
if (py_pattern1.test(line)) {
4951
config = line.replace(/from\s/,"");

manifest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"name": "Github linkify for CMSSW",
33
"description": "Makes browsing CMSSW files waaaay easier.",
4-
"version": "0.3.1",
4+
"version": "0.3.2",
55
"content_scripts": [
66
{
77
"matches": [
88
"https://www.github.com/*/cmssw/*",
99
"https://github.com/*/cmssw/*"
1010
],
1111
"js": ["contentscript.js"],
12-
// "js": ["contentscript.js", "jquery-2.1.1.min.js"]
1312
"run_at": "document_end" // pay attention to this line
1413
}
1514
],

0 commit comments

Comments
 (0)