Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

version: allow basic regex replacement in version #122

Merged
merged 1 commit into from
Jun 15, 2021
Merged

Conversation

mjcheetham
Copy link
Owner

Allow specifying regular expression replacements for the {{version}} variable.
To specify a replacement, use the following format:

{{version:s/A/B/}}

..to replace all matching instances of regular expression A with B.

Special tokens available in B are those in the JavaScript String replace method, such as $1, $2, etc.

Allow specifying regular expression replacements for the {{version}}
variable.

To specify a replacement, use the following format:

  {{version:s/A/B/}}

..to replace all matching instances of regular expression A with B.

Special tokens available in B are those in the JavaScript String
`replace` method, such as $1, $2, etc.
@mjcheetham mjcheetham merged commit 9e32ed5 into main Jun 15, 2021
@mjcheetham mjcheetham deleted the regex-version branch June 15, 2021 21:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants