HOWTO use replacements with more advanced regex? #179
-
Hi @miniscruff, I'm trying the The file presents itself as the following: version: 0.1.0
dependencies:
- name: mysql
repository: https://charts.bitnami.com/bitnami
tags:
- bitnami-mysql
version: ~8.8.8
condition: mysql.enabled If I use the following configuration, the main version and dependency version are changed: replacements:
- path: Chart.yaml
find: 'version: .*'
replace: 'version: {{.VersionNoPrefix}}' But If I do the following to make sure the line strictly start with the replacements:
- path: Chart.yaml
find: '^version: .*'
replace: 'version: {{.VersionNoPrefix}}' How can I make this work properly? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The second version works for me after copy pasting your Chart.yaml and replacements config. I don't see anything wrong and was not able to run into any issues myself. |
Beta Was this translation helpful? Give feedback.
-
This should now be resolved by the latest release. Regex flags are now customizable with "multiline" being on by default. If anything similar happens again please file an issue. |
Beta Was this translation helpful? Give feedback.
This should now be resolved by the latest release. Regex flags are now customizable with "multiline" being on by default. If anything similar happens again please file an issue.