kopia lustrzana https://github.com/badgen/badgen.net
Support legacy list param
rodzic
9920c34b81
commit
0e14e6c49a
|
@ -41,7 +41,7 @@ function transformStatus (status: any, { list }) {
|
|||
status = String(status)
|
||||
|
||||
if (list !== undefined) {
|
||||
if (list === '1') list = '|' // compatible
|
||||
if (list === '1' || list === '') list = '|' // compatible
|
||||
status = status.replace(/,/g, ` ${list} `)
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue