kopia lustrzana https://github.com/badgen/badgen.net
fix(cran): replace all pattern occurrences (#488)
rodzic
aa0b7533e9
commit
417d482731
|
|
@ -47,7 +47,7 @@ async function cranHandler ({ topic, pkg }: PathArgs) {
|
||||||
}
|
}
|
||||||
case 'r': {
|
case 'r': {
|
||||||
const data = await client.get(pkg).json<any>()
|
const data = await client.get(pkg).json<any>()
|
||||||
const rVersion = data.Depends?.R?.replace(/([<>=]+)\s+/, '$1') || '*'
|
const rVersion = data.Depends?.R?.replace(/([<>=]+)\s+/g, '$1') || '*'
|
||||||
return {
|
return {
|
||||||
subject: 'R',
|
subject: 'R',
|
||||||
status: version(rVersion),
|
status: version(rVersion),
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue