Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix printf-like formatting for custom messages #6389

Merged
merged 1 commit into from Oct 3, 2022

Commits on Oct 3, 2022

  1. Fix printf-like formatting for custom messages

    The Node.js `util.format()` API can concatenate extra arguments to the result string.
    This behavior is not suitable for custom messages.
    So, this commit replace `util.format()` with our implementation.
    
    See https://nodejs.org/api/util.html#utilformatformat-args
    
    > If there are more arguments passed to the `util.format()` method than the number of specifiers,
    > the extra arguments are concatenated to the returned string, separated by spaces:
    ybiquitous committed Oct 3, 2022
    Copy the full SHA
    3947cc4 View commit details
    Browse the repository at this point in the history