Re: Portscout wrong 'New version'
- In reply to: Felix Palmen : "Re: Portscout wrong 'New version'"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 24 Jul 2022 12:21:24 UTC
I've take a look at perl regex and followed your example of using 'd' instead of '[0-9]: use PORTSCOUT= 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 à(s) 02:33: > Hello Nuno, > > * Nuno Teixeira <eduardo@freebsd.org> [20220724 01:53]: > > PORTSCOUT= 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 >