Skip to content

Commit

Permalink
Corrected a bug with parsing the comment block.
Browse files Browse the repository at this point in the history
Was failing when it tried to parse <#.
Now watching for 2 pieces to a comment block section.
  • Loading branch information
markdomansky committed Jun 9, 2018
1 parent 769efe3 commit 5e7f542
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebJEA/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("0.9.145.18148")>
<Assembly: AssemblyFileVersion("0.9.145.18148")>
<Assembly: AssemblyVersion("0.9.149.18160")>
<Assembly: AssemblyFileVersion("0.9.149.18160")>
2 changes: 2 additions & 0 deletions WebJEA/PSScriptParser.vb
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ Public Class PSScriptParser
Section = Section.Trim 'trim leading and trailing spaces, cr,lf, etc

Dim sectionarr() As String = Section.Split(vbLf.ToCharArray, 2)
If (sectionarr.Count) <> 2 Then Return 'this isn't a valid section, so skip it

Dim header As String = sectionarr(0).Trim
Dim comment As String = sectionarr(1).Trim

Expand Down

0 comments on commit 5e7f542

Please sign in to comment.