diff --git a/tools/update-libraries.js b/tools/update-libraries.js index 29804f18..e6ace08c 100644 --- a/tools/update-libraries.js +++ b/tools/update-libraries.js @@ -47,7 +47,7 @@ async function updateReadme(lib) { const pkg = await fs.readJson(`${root}/node_modules/${lib}/package.json`); const file = `${root}/vendor/${lib}/README.md`; const txt = await fs.readFile(file, 'utf8'); - return fs.writeFile(file, txt.replace(/##\s*v[-\w.]+/, `## v${pkg.version}`)); + return fs.writeFile(file, txt.replace(/\bv[\d.]+[-\w]*\b/g, `v${pkg.version}`)); } async function copy(lib, folder) { diff --git a/vendor/codemirror/README.md b/vendor/codemirror/README.md index a3305f56..153ec8ca 100644 --- a/vendor/codemirror/README.md +++ b/vendor/codemirror/README.md @@ -1,4 +1,4 @@ -## v5.39.0 +## CodeMirror v0.0.0 List of essential folders & files copied from `node_modules/codemirror` to `vendor/codemirror`: diff --git a/vendor/jsonlint/README.md b/vendor/jsonlint/README.md index be253405..9745d517 100644 --- a/vendor/jsonlint/README.md +++ b/vendor/jsonlint/README.md @@ -1,3 +1,10 @@ -## v1.6.3 +## Jsonlint v0.0.0 -Jsonlint version installed via npm - source repo https://github.com/zaach/jsonlint +Jsonlint installed via npm - source repo: + +https://github.com/zaach/jsonlint/blob/v0.0.0/lib/jsonlint.js + +If the link doesn't work, it is likely that the npm version and the release versions don't match: + +https://www.npmjs.com/package/jsonlint +https://github.com/zaach/jsonlint/releases