Date: Sun, 24 Jul 2022 13:21:24 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Re: Portscout wrong 'New version' Message-ID: <CAFDf7UKRmSxzZkNLpA6OJEGRTeAuW%2BvqOyGAXXAMiu_OFRhJ4A@mail.gmail.com> In-Reply-To: <20220724013346.3x2lyd6ehumzbtjv@nexus.home.palmen-it.de> References: <CAFDf7UKqrN-n4obHhnPdvKX%2BLDF_CudUg%2BhDTvYUb77ATv6Cfg@mail.gmail.com> <20220723225651.i7x7a322g2owgnh5@nexus.home.palmen-it.de> <CAFDf7UKU%2BCWtKW2rVoo5pEGZ3YWyUC6_OhkkVBmH83G6ngqigQ@mail.gmail.com> <20220724013346.3x2lyd6ehumzbtjv@nexus.home.palmen-it.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000c509f905e48c1b1f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've take a look at perl regex and followed your example of using 'd' instead of '[0-9]: use PORTSCOUT=3D limit:^\d\.\d\.\d\.\d+$ will match 0.5.4.18 versions Thanks Felix Palmen <felix@palmen-it.de> escreveu no dia domingo, 24/07/2022 =C3= =A0(s) 02:33: > Hello Nuno, > > * Nuno Teixeira <eduardo@freebsd.org> [20220724 01:53]: > > PORTSCOUT=3D limit:^[0-9.]+$$ # ignore master.mint* tags > > regarding this, portscout is documented to use perl regex. I didn't try > myself so far, but this *should* mean [0-9] could be simplified to \d. > > Of course, then it wouldn't include a dot (.) > > But then, no version number will ever *start* with a dot (I assume). > With PORTSCOUT limit, I'd try to be as permissive as possible. \d\.\d > seems to be a (perl regex) pattern matching most "sane" version numbers > (and reject other tags appearing on github). > > Cheers, Felix > > -- > Dipl.-Inform. Felix Palmen <felix@palmen-it.de> ,.//.......... > {web} http://palmen-it.de {jabber} [see email] ,//palmen-it.de > {pgp public key} http://palmen-it.de/pub.txt // """"""""""" > {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A > --000000000000c509f905e48c1b1f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I've take a look at perl regex and followed your = example of using 'd' instead of '[0-9]:<br></div><div><br></div= ><div>use PORTSCOUT=3D limit:^\d\.\d\.\d\.\d+$ will match 0.5.4.18 versions= </div><div><br></div><div>Thanks<br></div></div><br><div class=3D"gmail_quo= te"><div dir=3D"ltr" class=3D"gmail_attr">Felix Palmen <<a href=3D"mailt= o:felix@palmen-it.de">felix@palmen-it.de</a>> escreveu no dia domingo, 2= 4/07/2022 =C3=A0(s) 02:33:<br></div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex">Hello Nuno,<br> <br> * Nuno Teixeira <<a href=3D"mailto:eduardo@freebsd.org" target=3D"_blank= ">eduardo@freebsd.org</a>> [20220724 01:53]:<br> > PORTSCOUT=3D limit:^[0-9.]+$$ # ignore master.mint* tags<br> <br> regarding this, portscout is documented to use perl regex. I didn't try= <br> myself so far, but this *should* mean [0-9] could be simplified to \d.<br> <br> Of course, then it wouldn't include a dot (.)<br> <br> But then, no version number will ever *start* with a dot (I assume).<br> With PORTSCOUT limit, I'd try to be as permissive as possible. \d\.\d<b= r> seems to be a (perl regex) pattern matching most "sane" version n= umbers<br> (and reject other tags appearing on github).<br> <br> Cheers, Felix<br> <br> -- <br> =C2=A0Dipl.-Inform. Felix Palmen=C2=A0 <<a href=3D"mailto:felix@palmen-i= t.de" target=3D"_blank">felix@palmen-it.de</a>>=C2=A0 =C2=A0,.//........= ..<br> =C2=A0{web}=C2=A0 <a href=3D"http://palmen-it.de" rel=3D"noreferrer" target= =3D"_blank">http://palmen-it.de</a>=C2=A0 {jabber} [see email]=C2=A0 =C2=A0= ,//<a href=3D"http://palmen-it.de" rel=3D"noreferrer" target=3D"_blank">pal= men-it.de</a><br> =C2=A0{pgp public key}=C2=A0 =C2=A0 =C2=A0<a href=3D"http://palmen-it.de/pu= b.txt" rel=3D"noreferrer" target=3D"_blank">http://palmen-it.de/pub.txt</a>= =C2=A0 =C2=A0//=C2=A0 =C2=A0""""""""= ;"""<br> =C2=A0{pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A<b= r> </blockquote></div> --000000000000c509f905e48c1b1f--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKRmSxzZkNLpA6OJEGRTeAuW%2BvqOyGAXXAMiu_OFRhJ4A>