Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ _This release is scheduled to be released on 2021-01-01._
- update node-ical version again, 0.12.5, change RRULE fix (#2371, #2379)
- Added missing function call in module.show()
- remove undefined objects from modules array (#2382)
- Translator variables can have falsy values (e.g. empty string)

## [2.13.0] - 2020-10-01

Expand Down
2 changes: 1 addition & 1 deletion js/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var Translator = (function () {
template = variables.fallback;
}
return template.replace(new RegExp("{([^}]+)}", "g"), function (_unused, varName) {
return variables[varName] || "{" + varName + "}";
return varName in variables ? variables[varName] : "{" + varName + "}";
});
}

Expand Down