File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ export class TemporaryComment extends CommentBase {
186186 }
187187}
188188
189- const SUGGESTION_EXPRESSION = / ` ` ` s u g g e s t i o n ( \r \n | \n ) ( (?< suggestion > [ \s \S ] * ?) ( \r \n | \n ) ) ? ` ` ` / ;
189+ const SUGGESTION_EXPRESSION = / ` ` ` s u g g e s t i o n ( \u0020 * ( \ r\n | \n ) ) ( (?< suggestion > [ \s \S ] * ?) ( \r \n | \n ) ) ? ` ` ` / ;
190190
191191export class GHPRComment extends CommentBase {
192192 public commentId : string ;
@@ -291,7 +291,7 @@ export class GHPRComment extends CommentBase {
291291 get suggestion ( ) : string | undefined {
292292 const match = this . rawComment . body . match ( SUGGESTION_EXPRESSION ) ;
293293 const suggestionBody = match ?. groups ?. suggestion ;
294- if ( match ?. length === 5 ) {
294+ if ( match ?. length === 6 ) {
295295 return suggestionBody ? `${ suggestionBody } \n` : '' ;
296296 }
297297 }
@@ -305,7 +305,7 @@ export class GHPRComment extends CommentBase {
305305 return `***
306306Suggested change:
307307\`\`\`
308- ${ args [ 2 ] ?? '' }
308+ ${ args [ 3 ] ?? '' }
309309\`\`\`
310310***` ;
311311 } ) ;
You can’t perform that action at this time.
0 commit comments