Skip to content

Commit

Permalink
Another little change in a doc and [CodeBuild]
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed Dec 11, 2023
1 parent 05236b0 commit 4fbb826
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def update_parameter(parameter_name: str, formatter: str) -> None:
# to avoid the missing parameters' error. Below is an example of a formatter string
# before and after applying the regex, assuming the current parameter is 'version'.
# 'something-with-{version}/tailored-for-{user}' => 'something-with-{version}/tailored-for-{{user}}'
# We were looking for all occurrences of a pattern '{some_name}', where some_name is not version.
pattern = r'\{(?!' + param.name + r'\})\w+\}'
param_formatter = re.sub(pattern, lambda m: f'{{{m.group(0)}}}', param_formatter)
kwargs = {param.name: value}
Expand Down

0 comments on commit 4fbb826

Please sign in to comment.