Closed burkmarr closed 3 years ago
I had a similar problem with the Taxon Metadata layer. The code in the saveComposerImage function in biorecdialog.py allows for white space at both ends of the regular expression match, as indicated by the comment in the code:
#The regular expression (~ comparison) allows for leading and trailing white space on the taxa
strFilter = '"%s" ~ \' *%s *\'' % ("Taxon", nameReplace)
But because the re is not anchored it will also match sub-strings in the Taxon name. I think the re here should be:
`strFilter = '"%s" ~ \'^ %s $\'' % ("Taxon", nameReplace)
`
From an email from Patrick Cook (Butterfly Conservation)...