fix(cran): replace all pattern occurrences (#488)

pull/492/head
Dario Vladović 2021-02-04 15:13:27 +01:00 zatwierdzone przez GitHub
rodzic aa0b7533e9
commit 417d482731
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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),