File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
const id = 'fixes-url'
2
2
const github = new RegExp ( '^https://github\\.com/[\\w-]+/[\\w-]+/' +
3
- '(issues|pull)/\\d+(#issuecomment-\\d+|#discussion_r\\d+)?$'
3
+ '(issues|pull)/\\d+(#issuecomment-\\d+|#discussion_r\\d+)?\/? $'
4
4
)
5
5
6
6
export default {
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ test('rule: fixes-url', (t) => {
24
24
const valid = [
25
25
[ 'GitHub issue URL' ,
26
26
'https://github.com/nodejs/node/issues/1234' ] ,
27
+ [ 'GitHub issue URL with trailing slash' ,
28
+ 'https://github.com/nodejs/node/issues/1234/' ] ,
27
29
[ 'GitHub issue URL containing hyphen' ,
28
30
'https://github.com/nodejs/node-report/issues/1234' ] ,
29
31
[ 'GitHub issue URL containing hyphen with comment' ,
You can’t perform that action at this time.
0 commit comments