Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
printf
-like formatting for custom messages (#6389)
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:
- Loading branch information
1 parent
751acda
commit 6599729
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"stylelint": patch | ||
--- | ||
|
||
Fixed: `printf`-like formatting for custom messages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters