Skip to content

Commit

Permalink
Updated readme function
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Dec 9, 2024
1 parent bdd734f commit 5c14ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avm/utilities/pipelines/sharedScripts/Set-ModuleReadMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ function ConvertTo-FormattedJSONParameterObject {
$isLineWithReferenceInLineKey = ($line -split ':')[0].Trim() -like '*.*'
$isLineWithStringNestedReference = $lineValue -match "['|`"]{1}.*\$\{.+" # e.g., "Download ${initializeSoftwareScriptName}" or '${last(...)}'
$isLineWithStringValue = $lineValue -match '^".+"$' # e.g. "value"
$isLineWithFunction = $lineValue -match '^[a-zA-Z]+\(.+' # e.g., split(something)
$isLineWithFunction = $lineValue -match '^[a-zA-Z0-9]+\(.+' # e.g., split(something) or loadFileAsBase64("./test.pfx")
$isLineWithPlainValue = $lineValue -match '^\w+$' # e.g. adminPassword: password
$isLineWithPrimitiveValue = $lineValue -match '^\s*true|false|[0-9]+$' # e.g., isSecure: true
$isLineContainingCondition = $lineValue -match '^\w+ [=!?|&]{2} .+\?.+\:.+$' # e.g., iteration == "init" ? "A" : "B"
Expand Down

0 comments on commit 5c14ddd

Please sign in to comment.