r4494 - packages/trunk/clanlib/debian
Barry deFreese
bddebian at comcast.net
Wed Oct 31 02:37:02 UTC 2007
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.
Thanks,
Barry
More information about the Pkg-games-devel
mailing list