diff --git a/scripts/changelog.cjs b/scripts/changelog.cjs index 41dd9325..2ca78f10 100755 --- a/scripts/changelog.cjs +++ b/scripts/changelog.cjs @@ -30,7 +30,7 @@ const resolve = paths => path.resolve(__dirname, `../${name}/${paths}`) * @param {string} name */ function writePackageJson (name) { - const versionRegex = /VERSION = '([\d.]+(?:[-.]\w+)?)'/ + const versionRegex = /VERSION = "([\d.]+(?:[-.]\w+)?)"/ const versionFile = fs.readFileSync(resolve(`lib/${name}/version.rb`), 'utf-8') const versionCaptures = versionFile.match(versionRegex) const version = versionCaptures && versionCaptures[1] diff --git a/scripts/release.cjs b/scripts/release.cjs index d952cff6..91dea1d8 100755 --- a/scripts/release.cjs +++ b/scripts/release.cjs @@ -83,7 +83,7 @@ function resolve (paths) { } function rubyPackage () { - const versionRegex = /VERSION = '([\d.]+(?:[-.]\w+)?)'/ + const versionRegex = /VERSION = "([\d.]+(?:[-.]\w+)?)"/ const path = resolve(`lib/${name}/version.rb`) const content = fs.readFileSync(path, 'utf-8') const versionCaptures = content.match(versionRegex) @@ -98,7 +98,7 @@ function rubyPackage () { content, version, updateVersion (version) { - const newContent = content.replace(versionRegex, `VERSION = '${version}'`) + const newContent = content.replace(versionRegex, `VERSION = "${version}"`) fs.writeFileSync(path, `${newContent}`) }, }