logo separator

[mkgmap-dev] regex to remove leading 0

From Felix Hartmann extremecarver at gmail.com on Wed Oct 16 12:19:32 BST 2013

On 11.10.2013 11:20, Steve Ratcliffe wrote:
> On 11/10/13 09:39, Felix Hartmann wrote:
>> Error: (points:396): Invalid arguments to EQUALS: VALUE
>> (${rcn_ref|subst:^0+~>}) and EXISTS (rcn_ref=*)e: Error: (points:396):
>> Invalid arguments to EQUALS: VALUE (${rcn_ref|subst:^0+~>}) and EXISTS
>> (rcn_ref=*)
>
> That error means that you have a rule that contains:
>
>     '${rcn_ref|subst:^0+~>}' = rcn_ref=*
>
> perhaps that is caused by another error a little earlier on.
>
> The error cannot be the result of anything that is in an action block.
> I'd have to see more of the file to say anything more.
>
> ..Steve

The only calls to rcn_ref before are:
rcn_ref=01 {set rcn_ref=1 }
rcn_ref=02 {set rcn_ref=2 }
rcn_ref=03 {set rcn_ref=3 }
rcn_ref=04 {set rcn_ref=4 }
rcn_ref=05 {set rcn_ref=5 }
rcn_ref=06 {set rcn_ref=6 }
rcn_ref=07 {set rcn_ref=7 }
rcn_ref=08 {set rcn_ref=8 }
rcn_ref=09 {set rcn_ref=9 }
set rcn_ref='${rcn_ref|subst:^0+~>}'

So basically as I wasn't sure if it will work, I thought let's catch all 
double 00 with this command. If I comment out the last line, then the 
map compiles just fine without any error messages.



-- 
keep on biking and discovering new trails

Felix
openmtbmap.org & www.velomap.org



More information about the mkgmap-dev mailing list