Skip to content

Commit

Permalink
Update classes.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
LxLeChat authored Oct 21, 2019
1 parent f738c56 commit 8638b69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Classes/classes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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:(?<description> .+)\r\s+#\>' ) {
#If ( $c[0].text -match '\<#\r\s+DiagramDescription:(?<description> .+)\r\s+#\>' ) {
If ( $c[0].text -match 'DiagramDescription:(?<description>\s?[\w\s]+)' ) {
$this.Description = $Matches.description.Trim()
} Else {
$this.Description = $this.Statement
Expand Down

0 comments on commit 8638b69

Please sign in to comment.