Anthony Towns <aj@azure.humbug.org.au> writes: > Goswin von Brederlow wrote: >> Anthony Towns <aj@azure.humbug.org.au> writes: >>>That'd mean REJECTing uploads whose versions match >>>"[^0-9]+[a-z][0-9]+$" presumably. > ^ ^ > First + is literal, second + is "one or more". One should be > escaped. Which one? Depends whether it's a regexp or an eregexp... :-/ > >> No, why? > > Because 1.2-1~beta+b1 >> 1.2-1~beta1. > > That regexp is rejecting uploads where there *isn't* a number before > the +. '[^0-9]\+[a-z0-9]+$' (as an eregexp) might be better.
Ahh, you mean reject the +b1 and not the source upload. Got you. MfG Goswin