Skip to content

Commit

Permalink
#36 fix finding
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Feb 28, 2020
1 parent 5522fdc commit 86a48e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/WFSCapabilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ WFSCapabilities <- R6Class("WFSCapabilities",
findFeatureTypeByName = function(expr){
result <- lapply(private$featureTypes, function(x){
ft <- NULL
if(attr(regexpr(expr, x$getName()), "match.length") != -1){
if(attr(regexpr(expr, x$getName()), "match.length") != -1
&& endsWith(x$getName(), expr)){
ft <- x
}
return(ft)
Expand Down

0 comments on commit 86a48e7

Please sign in to comment.