Skip to content

Commit 9d497a7

Browse files
committed
Toolinfo: do not require a trailing / for toolforge.org urls
This always makes my head hurt, but folks seem to like to write things like 'https://my-tool.toolforge.org' as canonical URLs.
1 parent 5546a4a commit 9d497a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Toolinfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private function filterToolinfo( $raw ) {
112112
}
113113
} elseif ( false !== strpos( $info['url'], 'toolforge.org' ) ) {
114114
preg_match(
115-
'#^(https?:)?//([^.]+).toolforge.org/.*#',
115+
'#^(https?:)?//([^.]+).toolforge.org.*#',
116116
$info['url'],
117117
$m
118118
);

0 commit comments

Comments
 (0)