File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
RetailCoder.VBE/ToDoItems Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public class ToDoItem
35
35
public QualifiedSelection GetSelection ( ) { return _selection ; }
36
36
37
37
public ToDoItem ( TodoPriority priority , CommentNode comment )
38
- : this ( priority , comment . Comment . Remove ( 0 , 1 ) . Trim ( ) , comment . QualifiedSelection )
38
+ : this ( priority , comment . CommentText , comment . QualifiedSelection )
39
39
{
40
40
}
41
41
Original file line number Diff line number Diff line change
1
+ using System ;
1
2
using Rubberduck . Parsing . Grammar ;
2
3
using Rubberduck . VBEditor ;
3
4
@@ -35,7 +36,7 @@ public CommentNode(string comment, QualifiedSelection qualifiedSelection)
35
36
/// <summary>
36
37
/// Gets the trimmed comment text, without the comment marker.
37
38
/// </summary>
38
- public string CommentText { get { return _comment . Replace ( Marker , string . Empty ) . TrimStart ( ) ; } }
39
+ public string CommentText { get { return _comment . Remove ( _comment . IndexOf ( "'" , StringComparison . Ordinal ) , 1 ) . Trim ( ) ; } }
39
40
40
41
/// <summary>
41
42
/// The token used to indicate a comment.
You can’t perform that action at this time.
0 commit comments