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);