Merge pull request #1482 from umap-project/greedytemplate-object
Do not fail on greedyTemplate when description is an object
This commit is contained in:
commit
acfcc2e2a6
1 changed files with 2 additions and 0 deletions
|
@ -176,6 +176,8 @@ L.Util.greedyTemplate = (str, data, ignore) => {
|
|||
return value
|
||||
}
|
||||
|
||||
if (typeof str !== 'string') return ''
|
||||
|
||||
return str.replace(
|
||||
/\{ *([^\{\}/\-]+)(?:\|("[^"]*"))? *\}/g,
|
||||
(str, key, staticFallback) => {
|
||||
|
|
Loading…
Reference in a new issue