Hi,

I finally found the origin of my trouble.
Adding more debug traces, it gives the following:

uscan debug: safe_replace with 
regexp="archive/refs/tags/(v?(?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))((?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz)))",
 replacement="releases/download/$1/SuperTux-$1-Source$2", and flags=""
uscan debug: captures[0] = archive/refs/tags/v0.6.3.tar.gz
uscan debug: captures[1] = v0.6.3
uscan debug: captures[2] = 0.6.3
uscan debug: captures[3] = .tar.gz

when d/watch contains:

downloadurlmangle=s%archive/refs/tags/(v?@ANY_VERSION@)(@ARCHIVE_EXT@)%releases/download/$1/SuperTux-$1-Source$2%

So doing (v?@ANY_VERSION@) creates in fact two captures.

Is this something expected?

Regards,
Patrice

Reply via email to