Closed n4zukker closed 3 years ago
The result of util.format() is an empty string. The result of quick-format-unescaped.format() is a TypeError.
util.format()
quick-format-unescaped.format()
> require('util').format() '' > const format = require('quick-format-unescaped') undefined > format() TypeError: Cannot read property 'length' of undefined at format (.../node_modules/quick-format-unescaped/index.js:25:21) >
This PR fixes that so '' is returned and quick-format-unescaped.format() more closely matches util.format().
''
Unfortunately this caused a significant regression in pino.
The result of
util.format()
is an empty string. The result ofquick-format-unescaped.format()
is a TypeError.This PR fixes that so
''
is returned andquick-format-unescaped.format()
more closely matchesutil.format()
.