From 8638b694100de31308ad8b3885e27299e6b262b8 Mon Sep 17 00:00:00 2001 From: LxLeChat Date: Mon, 21 Oct 2019 16:33:17 +0200 Subject: [PATCH] Update classes.ps1 --- Code/Classes/classes.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/Classes/classes.ps1 b/Code/Classes/classes.ps1 index 085df70..ad4c4d8 100644 --- a/Code/Classes/classes.ps1 +++ b/Code/Classes/classes.ps1 @@ -101,7 +101,8 @@ class node { $c = $tokens | Where-Object kind -eq "comment" If ( $c.count -gt 0 ) { - If ( $c[0].text -match '\<#\r\s+DiagramDescription:(? .+)\r\s+#\>' ) { + #If ( $c[0].text -match '\<#\r\s+DiagramDescription:(? .+)\r\s+#\>' ) { + If ( $c[0].text -match 'DiagramDescription:(?\s?[\w\s]+)' ) { $this.Description = $Matches.description.Trim() } Else { $this.Description = $this.Statement