Compare commits

...

1 Commits

View File

@@ -23,6 +23,10 @@ module.exports = function makeBadge({
logoWidth, logoWidth,
links = ['', ''], links = ['', ''],
}) { }) {
if (!logo && (logoPosition !== undefined || logoWidth !== undefined)) {
throw Error('`logoPosition` and `logoWidth` require `logo`')
}
// String coercion and whitespace removal. // String coercion and whitespace removal.
label = `${label}`.trim() label = `${label}`.trim()
message = `${message}`.trim() message = `${message}`.trim()