Skip to content

Commit c7577e3

Browse files
committed
Try adding second regex again
1 parent 8a126b3 commit c7577e3

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

sphinx_matcher.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
"message": 4
1212
}
1313
]
14+
},
15+
{
16+
"owner": "sphinx-problem-matcher-loose",
17+
"pattern": [
18+
{
19+
"_comment": "A bit of a looser pattern, doesn't look for line numbers, just looks for file names relying on them to start with / and end with .rst",
20+
"regexp": "(\/.*\\.rst):\\s+(\\w*):\\s+(.*)$",
21+
"file": 1,
22+
"severity": 2,
23+
"message": 3
24+
}
25+
]
1426
}
1527
]
1628
}

test_matcher.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,12 @@ const expected_matches = [
4848
'severity': 'WARNING',
4949
'message': 'Unknown directive type "BADDIRECTIVE".',
5050
},
51-
/*
5251
{
5352
'file': '/home/travis/build/ammaraskar/sphinx-action/tests/test_projects/warnings/notintoc.rst',
5453
'line': null,
5554
'severity': 'WARNING',
5655
'message': "document isn't included in any toctree"
5756
}
58-
*/
5957
]
6058

6159
function perform_match(pattern_object, line) {

0 commit comments

Comments
 (0)