mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 04:28:28 +02:00
fix: make whitespace in .tool-versions optional
This commit is contained in:
parent
a61c3e7932
commit
13cc864142
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ const FILE_VERSION_READERS = {
|
||||||
"package.json": (content: string) =>
|
"package.json": (content: string) =>
|
||||||
JSON.parse(content).packageManager?.split("bun@")?.[1],
|
JSON.parse(content).packageManager?.split("bun@")?.[1],
|
||||||
".tool-versions": (content: string) =>
|
".tool-versions": (content: string) =>
|
||||||
content.match(/^bun\s(?<version>.*?)$/m)?.groups?.version,
|
content.match(/^bun\s?(?<version>.*?)$/m)?.groups?.version,
|
||||||
".bumrc": (content: string) => content,
|
".bumrc": (content: string) => content,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue