0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-21 15:04:33 -05:00

fix: auto_update_v8 README regex (#1061)

This commit is contained in:
Ryan Dahl 2022-08-27 12:44:12 -04:00 committed by GitHub
parent 746f7a3a56
commit 1f3e0e1d54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ console.log(`Updated to version ${newVersion}`);
// Update version in readme // Update version in readme
let readme = Deno.readTextFileSync("README.md"); let readme = Deno.readTextFileSync("README.md");
readme = readme.replace( readme = readme.replace(
/V8 Version: .*$/, /V8 Version: \S+/,
`V8 Version: ${newVersion}`, `V8 Version: ${newVersion}`,
); );
Deno.writeTextFileSync("README.md", readme); Deno.writeTextFileSync("README.md", readme);