This regexp doesn't seem to match my setting, as I have $(MARKETING_VERSION) as the value of CFBundleShortVersionString. I'm not a regexpert (lol), so cannot make a pull request to correct this, or to account for this. Can it be done at all?
|
content = content.replace(/(<key>CFBundleShortVersionString<\/key>\s*<string>)([\d\.]+)(<\/string>)/g, `$1${version}$3`); |