This repository was archived by the owner on Jun 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ contract BasicSample {
11
11
/**
12
12
* @notice External function that returns a bool
13
13
* @dev A dev comment
14
- * @param _magicNumber A parameter description
14
+ * @param _magicNumber A parameter description
15
15
* @param _name Another parameter description
16
16
* @return _isMagic Some return data
17
17
*/
@@ -42,7 +42,7 @@ contract BasicSample {
42
42
* @notice External function that returns a bool
43
43
* @dev A dev comment
44
44
* @param _magicNumber A parameter description
45
- * @param _name Another parameter description
45
+ * @param _name Another parameter description
46
46
* @return _isMagic Some return data
47
47
* @return Test test
48
48
*/
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ export function parseNodeNatspec(node: SolcContractNode): Natspec {
27
27
result . inheritdoc = { content : tagMatch [ 2 ] } ;
28
28
}
29
29
} else if ( tagName === 'param' || tagName === 'return' ) {
30
- const tagMatch = line . match ( / ^ \s * @ ( \w + ) ( \w + ) ( .* ) $ / ) ;
30
+ const tagMatch = line . match ( / ^ \s * @ ( \w + ) * ( \w + ) ( .* ) $ / ) ;
31
31
if ( tagMatch ) {
32
32
currentTag = { name : tagMatch [ 2 ] , content : tagMatch [ 3 ] . trim ( ) } ;
33
33
result [ tagName === 'param' ? 'params' : 'returns' ] . push ( currentTag ) ;
34
34
}
35
35
} else {
36
- const tagMatch = line . match ( / ^ \s * @ ( \w + ) ( .* ) $ / ) ;
36
+ const tagMatch = line . match ( / ^ \s * @ ( \w + ) * ( .* ) $ / ) ;
37
37
if ( tagMatch ) {
38
38
currentTag = { name : tagName , content : tagMatch [ 2 ] } ;
39
39
result . tags . push ( currentTag ) ;
You can’t perform that action at this time.
0 commit comments