format excluded links for use in regex

This commit is contained in:
Sarah Schneider 2020-11-19 11:34:41 -05:00
Родитель dfda276317
Коммит 018b1316bf
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1,8 +1,8 @@
// Linkinator treats the following as regex.
module.exports = [
// Skip GitHub search links.
'https://github.com/search?.*',
'https://github.com/github/gitignore/search?',
'https://github.com/search\\?',
'https://github.com/github/gitignore/search\\?',
// These links require auth.
'https://github.com/settings/profile',
@ -15,6 +15,6 @@ module.exports = [
// Oneoff links that link checkers think are broken but are not.
'https://haveibeenpwned.com/',
'https://www.ilo.org/dyn/normlex/en/f?p=NORMLEXPUB:12100:0::NO::P12100_ILO_CODE:P029',
'https://www.ilo.org/dyn/normlex/en/f\\?p=NORMLEXPUB:12100:0::NO::P12100_ILO_CODE:P029',
'http://www.w3.org/wiki/LinkHeader/'
]