aboutsummaryrefslogtreecommitdiffstats
path: root/UrbanTerror/UrbanTerror.nvchecker
blob: 513f7b8ddbdb35d414aeb97350e6b24d66686353 (plain)
1
2
3
4
5
6
7
8
9
10
# UrbanTerror has no github/pypi release feed; parse the version out of the
# full-zip filename (UrbanTerror<NNN>_full.zip) on the downloads page and turn
# NNN into a dotted version (434 -> 4.3.4). nvchecker regex allows only a single
# capture group, so grab the digits then reshape with from/to_pattern.
[UrbanTerror]
source = "regex"
url = "https://www.urbanterror.info/downloads/"
regex = "UrbanTerror(\\d+)_full\\.zip"
from_pattern = "(\\d)(\\d)(\\d)"
to_pattern = "\\1.\\2.\\3"