Clean up stray files; fix widget.html hasOwnProperty; fix package.json test script
Co-authored-by: yhlhoh <205733785+yhlhoh@users.noreply.github.com>
This commit is contained in:
1 parent
a845707585
commit
55b1d861cc
7 files changed
+2
-1392
No files matched your search
+1
-3
@@ -137,9 +137,7 @@
|
||||
function fillPlaceholders(html, contentData) {
|
||||
if (!html || !contentData) return html || '';
|
||||
return html.replace(/\{\{(\w+)\}\}/g, (match, key) => {
|
||||
return Object.prototype.hasOwnProperty.call(contentData, key)
|
||||
? String(contentData[key])
|
||||
: match;
|
||||
return key in contentData ? String(contentData[key]) : match;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user