On Tue, Oct 31, 2023 at 12:26:54PM +0000, Wookey wrote: > But why? I thought brackets in regexes (this is a regex, right?) were > just for saving matches into parameters. Why does it make the version number > double-up in this case?
I don't know how regexes work in perl, but the thing is that
@ANY_VERSION@ already contains ( ), so you are effectively duplicating
them. From your log:
v((?:[-_]?v?(\d[\-+\.:\~\da-zA-Z]*)))
So I wouldn't be surprised that those brackets where causing some double
capturing or something similar, or at least this would be my
speculation.
BTW, @ANY_VERSION@ also already contains a v? in there, so you can do
away with your own.
--
regards,
Mattia Rizzolo
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
More about me: https://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
signature.asc
Description: PGP signature

