[ppa-qps-devel] Re: PPA bug report
Brought to you by:
ods
From: Denis S. O. <od...@st...> - 2005-02-21 08:00:15
|
Hi Dmitri, On Sun, 20 Feb 2005 10:53:44 -0800 "rusha" <bor...@us...> wrote: > It seems that the dot should be escaped in ip2cc is_IP regular > expression: > > is_IP = re.compile('^%s$' % '\.'.join([r'((1?\d)?\d|2[0-4]\d|25 > [0-5])']*4)).match > > Without it 1a2b3c4 is also considered as ip address. You are quite right. Also, there was another bug in this regular expression. Both are fixed in CVS. Thank you for report. -- Denis S. Otkidach http://www.python.ru/ [ru] |