r4494 - packages/trunk/clanlib/debian

Eddy Petrișor eddy.petrisor at gmail.com
Wed Oct 31 02:48:47 UTC 2007


Barry deFreese wrote:
> Eddy Petrișor wrote:
>> Barry deFreese wrote:
>>   
>>> Author: bddebian-guest
>>> Date: 2007-10-30 00:28:44 +0000 (Tue, 30 Oct 2007)
>>> New Revision: 4494
>>>
>>> Modified:
>>>    packages/trunk/clanlib/debian/watch
>>> Log:
>>> Update watch file regexp
>>>
>>>
>>> Modified: packages/trunk/clanlib/debian/watch
>>> ===================================================================
>>> --- packages/trunk/clanlib/debian/watch	2007-10-29 23:13:24 UTC (rev 4493)
>>> +++ packages/trunk/clanlib/debian/watch	2007-10-30 00:28:44 UTC (rev 4494)
>>> @@ -1,3 +1,3 @@
>>>  version=3
>>>  
>>> -http://www.clanlib.org/download/releases-0.8/ClanLib-(\d+.\d+.\d+)\.tgz
>>> +http://www.clanlib.org/download/releases-0.8/ClanLib-([\d.]+)\.tgz
>>>     
>> This would match also the following:
>> http://www.clanlib.org/download/releases-0.8/ClanLib-somenonvesion.tgz
>> http://www.clanlib.org/download/releases-0.8/ClanLib-12.string.tgz
>> http://www.clanlib.org/download/releases-0.8/ClanLib-%23_m.tgz
>>
>> Since you didn't escaped '.'
>>
>> It should be http://www.clanlib.org/download/releases-0.8/ClanLib-([\d\.]+)\.tgz
>> if you want to limit the version to digits and the dot character.
>>   
> The way that Rhonda explained it to me, because the . is inside the [] 
> class it matched only . and didn't need escaped.  I'm not a regexp 
> master by any stretch so I just need confirmation one way or another.

mea culpa

-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20071031/2b148a16/attachment.pgp 


More information about the Pkg-games-devel mailing list