Skip to content

Commit 018b131

Browse files
committed
format excluded links for use in regex
1 parent dfda276 commit 018b131

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/excluded-links.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Linkinator treats the following as regex.
22
module.exports = [
33
// Skip GitHub search links.
4-
'https://github.com/search?.*',
5-
'https://github.com/github/gitignore/search?',
4+
'https://github.com/search\\?',
5+
'https://github.com/github/gitignore/search\\?',
66

77
// These links require auth.
88
'https://github.com/settings/profile',
@@ -15,6 +15,6 @@ module.exports = [
1515

1616
// Oneoff links that link checkers think are broken but are not.
1717
'https://haveibeenpwned.com/',
18-
'https://www.ilo.org/dyn/normlex/en/f?p=NORMLEXPUB:12100:0::NO::P12100_ILO_CODE:P029',
18+
'https://www.ilo.org/dyn/normlex/en/f\\?p=NORMLEXPUB:12100:0::NO::P12100_ILO_CODE:P029',
1919
'http://www.w3.org/wiki/LinkHeader/'
2020
]

0 commit comments

Comments
 (0)