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
I don't think it's an expected or wanted behavior, and it can be fixed simply by creating a wrapper for the Merge function, to ensure there is no empty strings, and if there are only empty strings, just return an empty string, e.g.:
Oh wow. This is quite a blunder on my part. I am sorry and thank you so much for reporting it. It will be fixed in a bit. Please update to the latest version
Uh oh!
There was an error while loading. Please reload this page.
When the input for
twmerge.Merge
is nothing, or just empty strings, the program panics.I don't think it's an expected or wanted behavior, and it can be fixed simply by creating a wrapper for the Merge function, to ensure there is no empty strings, and if there are only empty strings, just return an empty string, e.g.:
But I think it would be best to handle it in the package itself.
The text was updated successfully, but these errors were encountered: