Skip to content

Commit b116b6a

Browse files
committed
links.config.php: Add two fake hosts to ignore
1 parent 96a01ee commit b116b6a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/links/links.config.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function (string $url, ?string $file = null): bool {
5252
;
5353
},
5454
function (string $url, ?string $file = null): bool {
55-
return (bool)preg_match('@(https?:)?//([a-z]+\.)?(localhost|127.0.0.1)(:[0-9]+)?(/.*|$)@', $url);
55+
return (bool)preg_match('@(https?:)?//([a-z]+\.)?(localhost|127.0.0.1|123.456.789.0)(:[0-9]+)?(/.*|$)@', $url);
5656
},
5757
function (string $url, ?string $file = null): bool {
5858
// Fake, placeholders, local servers, etc.
@@ -67,7 +67,8 @@ function (string $url, ?string $file = null): bool {
6767
|| str_contains($url, '//FRA_server_uri')
6868
|| str_contains($url, '//user:password@host')
6969
|| str_contains($url, '//user:pass@localhost')
70-
|| str_contains($url, '//varnish')
70+
|| str_contains($url, '//elasticsearch:9200')
71+
|| str_contains($url, '//varnish:80')
7172
|| str_contains($url, '//my.varnish.server')
7273
;
7374
},

0 commit comments

Comments
 (0)