Browse Source

fix: drop group from regex

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/6759/head
mertmit 12 months ago
parent
commit
8b0ab67595
  1. 2
      scripts/upgradeNocodbSdk.js

2
scripts/upgradeNocodbSdk.js

@ -22,7 +22,7 @@ const replacePackageVersion = (filePath) => {
return new Promise((resolve, reject) => {
return fs.readFile(filePath, 'utf8', function (err, data) {
if (err) return reject(err)
const rgx = new RegExp(`"${nocodbSdkPackage.name}": "(.*)"`, "g");
const rgx = new RegExp(`"${nocodbSdkPackage.name}": ".*"`, "g");
var result = data.replace(rgx, `"${nocodbSdkPackage.name}": "${nocodbSdkPackage.version}"`);
return fs.writeFile(filePath, result, 'utf8', function (err) {
if (err) return reject(err)

Loading…
Cancel
Save