
Hi Steve, I don't know where to fix that. In ValueBuilder.addFilter() we receive the string " substring:1:14" (with the leading blank) and that is not removed, so we don't match "substring". Gerd
Date: Fri, 28 Nov 2014 01:04:50 -0700 From: gpetermann_muenchen@hotmail.com To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] Substring returns full string
Hi,
try without the blanks: (ncn=yes | rcn=yes) { name '${rcnname|substring:1:14}'} [0x10018 resolution 22 continue with_actions]
Gerd
gbbickerton wrote
I have not had this problem with my email before that I know of, however it does not solve my problem what I want is a way to shorten names to say the first two words as some are very long. I have also tried { name '${rcnname|part:"\s<2"}'} but I am not sure how to separate at spaces I have tried ' ' etc without success
-- View this message in context: http://gis.19327.n5.nabble.com/Substring-returns-full-string-tp5825603p58256... Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev