File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public class JSDocParser {
3939
4040 /** Parse the given string as a JSDoc comment. */
4141 public JSDocComment parse (Comment comment ) {
42- source = comment .getText (). substring ( 1 ) ;
42+ source = comment .getText ();
4343 JSDocTagParser p = new JSDocTagParser ();
4444 Pair <String , List <JSDocTagParser .Tag >> r = p .new TagParser (null ).parse (source );
4545 List <JSDocTag > tags = new ArrayList <>();
@@ -1869,9 +1869,9 @@ public Pair<String, List<Tag>> parse(String comment) {
18691869 source = comment ;
18701870
18711871 length = source .length ();
1872- index = 0 ;
1872+ index = 1 ; // Skip initial "*"
18731873 lineNumber = 0 ;
1874- lineStart = 0 ;
1874+ lineStart = 1 ; // Skip initial "*"
18751875 recoverable = true ;
18761876 sloppy = true ;
18771877
You can’t perform that action at this time.
0 commit comments