This commit is contained in:
Yoshiya Hinosawa 2024-07-05 15:29:56 +09:00
parent 2b693fd8bf
commit 2184bc85ef
No known key found for this signature in database
GPG Key ID: 9017DB4559488785

View File

@ -64,7 +64,9 @@ function getDenoVersionFromFile(versionFilePath) {
// node 20.0.0 // node 20.0.0
// ``` // ```
// This parses the version of Deno from the file // This parses the version of Deno from the file
const denoVersionInToolVersions = contents.match(/^deno\s+v?(?<version>[^\s]+)$/m); const denoVersionInToolVersions = contents.match(
/^deno\s+v?(?<version>[^\s]+)$/m,
);
return denoVersionInToolVersions?.groups?.version || contents.trim(); return denoVersionInToolVersions?.groups?.version || contents.trim();
} }