Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
fix(i18n): Y utility was ignoring falsy entries
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jun 17, 2017
1 parent 827705f commit f22a4d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions y.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ module.exports = yTag
function yTag (parts) {
let str = ''
parts.forEach((part, i) => {
const arg = arguments[i + 1]
str += part
if (arg) {
if (arguments.length > i + 1) {
str += '%s'
}
})
Expand Down

0 comments on commit f22a4d0

Please sign in to comment.