From 8b0ab6759567c4e874e9ad1b6c4593698934e54e Mon Sep 17 00:00:00 2001 From: mertmit Date: Mon, 20 Nov 2023 10:10:26 +0300 Subject: [PATCH] fix: drop group from regex Signed-off-by: mertmit --- scripts/upgradeNocodbSdk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgradeNocodbSdk.js b/scripts/upgradeNocodbSdk.js index e85a30773c..344b85d8bc 100644 --- a/scripts/upgradeNocodbSdk.js +++ b/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)