MediaWiki:External image whitelist: Difference between revisions

From QEMU
(relax gitlib more)
(gitlab branches can have slashes in them. also document what the path elements are)
Line 6: Line 6:
#This is case-insensitive
#This is case-insensitive


# user, project (branch is in a query parameter)
^https://api.travis-ci.org/[^/]*/[^/.]*\.png
^https://api.travis-ci.org/[^/]*/[^/.]*\.png
# project (branch is in a query parameter)
^https://api.shippable.com/projects/[^/]*/badge
^https://api.shippable.com/projects/[^/]*/badge
# user, repo (branch not supported/)
^https://api.cirrus-ci.com/github/[^/]*/[^/.]*\.svg$
^https://api.cirrus-ci.com/github/[^/]*/[^/.]*\.svg$
# project id
^https://scan.coverity.com/projects/[^/]*/badge.svg
^https://scan.coverity.com/projects/[^/]*/badge.svg
^https://gitlab.com/[^/]*/[^/]*/badges/[^/]*/pipeline.svg$
 
# user, project, branch
^https://gitlab.com/[^/]*/[^/]*/badges/.*/pipeline.svg$
 
# project name
^https://patchew.org/[^/]*/badge.svg$
^https://patchew.org/[^/]*/badge.svg$


#Put all regex fragments above this line. Leave this line exactly as it is</pre>
#Put all regex fragments above this line. Leave this line exactly as it is</pre>

Revision as of 10:28, 13 March 2019

#Leave this line exactly as it is

#Put regular expression fragments (just the part that goes between the //) below
#These will be matched with the URLs of external (hotlinked) images
#Those that match will be displayed as images, otherwise only a link to the image will be shown
#Lines beginning with # are treated as comments
#This is case-insensitive

# user, project (branch is in a query parameter)
^https://api.travis-ci.org/[^/]*/[^/.]*\.png

# project (branch is in a query parameter)
^https://api.shippable.com/projects/[^/]*/badge

# user, repo (branch not supported/)
^https://api.cirrus-ci.com/github/[^/]*/[^/.]*\.svg$

# project id
^https://scan.coverity.com/projects/[^/]*/badge.svg

# user, project, branch
^https://gitlab.com/[^/]*/[^/]*/badges/.*/pipeline.svg$

# project name
^https://patchew.org/[^/]*/badge.svg$

#Put all regex fragments above this line. Leave this line exactly as it is