fix: make whitespace in .tool-versions optional
This commit is contained in:
parent
a61c3e7932
commit
13cc864142
@ -21,7 +21,7 @@ const FILE_VERSION_READERS = {
|
||||
"package.json": (content: string) =>
|
||||
JSON.parse(content).packageManager?.split("bun@")?.[1],
|
||||
".tool-versions": (content: string) =>
|
||||
content.match(/^bun\s(?<version>.*?)$/m)?.groups?.version,
|
||||
content.match(/^bun\s?(?<version>.*?)$/m)?.groups?.version,
|
||||
".bumrc": (content: string) => content,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user