File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export class PackageTypingsGenerator {
133133 indentedWriter . clear ( ) ;
134134
135135 for ( const analyzeWarning of this . _analyzeWarnings ) {
136- indentedWriter . writeLine ( '// ' + analyzeWarning ) ;
136+ indentedWriter . writeLine ( '// Warning: ' + analyzeWarning ) ;
137137 }
138138
139139 // If there is a @packagedocumentation header, put it first:
@@ -332,7 +332,9 @@ export class PackageTypingsGenerator {
332332
333333 let releaseTag : ReleaseTag = ReleaseTag . None ;
334334
335- const releaseTagRegExp : RegExp = / (?: \s | \* ) @ ( i n t e r n a l | a l p h a | b e t a | p u b l i c ) / g;
335+ // We don't want to match "bill@example.com". But we do want to match "/**@public*/".
336+ // So for now we require whitespace or a star before/after the string.
337+ const releaseTagRegExp : RegExp = / (?: \s | \* ) @ ( i n t e r n a l | a l p h a | b e t a | p u b l i c ) (?: \s | \* ) / g;
336338
337339 for ( const declaration of fullyFollowedSymbol . declarations || [ ] ) {
338340 const sourceFileText : string = declaration . getSourceFile ( ) . text ;
You can’t perform that action at this time.
0 commit comments