Skip to content

Commit 7021586

Browse files
author
Friedrich Weinmann
committed
Fixed Live Scriptblock-pattern
1 parent e6ae1b4 commit 7021586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSModuleDevelopment/functions/templating/New-PSMDTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@
324324
325325
Chained together in a logical or, in order to avoid combination issues.
326326
#>
327-
$pattern = "$($Identifier)([^{}!]+?)$($Identifier)|$($Identifier)!([^{}!]+?)!$($Identifier)|$($Identifier){(.+?)}$($Identifier)"
327+
$pattern = "$($Identifier)([^{}!]+?)$($Identifier)|$($Identifier)!([^{}!]+?)!$($Identifier)|(?ms)$($Identifier){(.+?)}$($Identifier)"
328328
#endregion Regex
329329

330330
$name = $Item.Name

0 commit comments

Comments
 (0)