string-template can't return number 0
Opened this issue · 0 comments
lizyChy0329 commented
If value is 0, return ''. How about fix it to return String(value) || ''
return value || '';
And I find that: keyParts[i]
will return ' setting' when templete is {{ setting.count }}, so lead to value[keyParts[i]] is undefined