You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The join helper checks to make sure that the supplied separator is a string using isString in the handlebars-utils repo. Because isString also makes sure the supplied string is non-empty, this means that I am unable to use an empty string separator in a join block.
Personally I think a function called isString shouldn't care whether the string is empty or not, but since this is the documented behavior of the function in handlebars-utils library, I've opened the issue here.
The text was updated successfully, but these errors were encountered:
Hmm, I think we should check for an empty string, instead of undefined (assuming this is what it's checking for now) and do what you're describing. thanks for the issue
The
join
helper checks to make sure that the supplied separator is a string usingisString
in the handlebars-utils repo. BecauseisString
also makes sure the supplied string is non-empty, this means that I am unable to use an empty string separator in ajoin
block.i.e. I would expect that this handlebars
would produce
when in fact it produces
Source for this repo: https://github.com/helpers/handlebars-helpers/blob/master/lib/array.js#L297
Source for utils repo: https://github.com/helpers/handlebars-utils/blob/master/index.js#L490
Personally I think a function called
isString
shouldn't care whether the string is empty or not, but since this is the documented behavior of the function in handlebars-utils library, I've opened the issue here.The text was updated successfully, but these errors were encountered: