File tree Expand file tree Collapse file tree
extensions/allium/src/language-tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3564,7 +3564,7 @@ function collectSuppressions(
35643564 lineStarts : number [ ] ,
35653565) : Map < number , Set < string > > {
35663566 const suppressionByLine = new Map < number , Set < string > > ( ) ;
3567- const pattern = / ^ \s * - - \s * a l l i u m - i g n o r e \s + ( [ A - Z a - z 0 - 9 . _ , \- \t ] + ) $ / gm;
3567+ const pattern = / ^ [ ^ \S \n ] * - - \s * a l l i u m - i g n o r e \s + ( [ A - Z a - z 0 - 9 . _ , \- \t ] + ) $ / gm;
35683568 for ( let match = pattern . exec ( text ) ; match ; match = pattern . exec ( text ) ) {
35693569 const line = offsetToPosition ( lineStarts , match . index ) . line ;
35703570 const codes = match [ 1 ]
Original file line number Diff line number Diff line change @@ -3560,7 +3560,7 @@ function collectSuppressions(
35603560 lineStarts : number [ ] ,
35613561) : Map < number , Set < string > > {
35623562 const suppressionByLine = new Map < number , Set < string > > ( ) ;
3563- const pattern = / ^ \s * - - \s * a l l i u m - i g n o r e \s + ( [ A - Z a - z 0 - 9 . _ , \- \t ] + ) $ / gm;
3563+ const pattern = / ^ [ ^ \S \n ] * - - \s * a l l i u m - i g n o r e \s + ( [ A - Z a - z 0 - 9 . _ , \- \t ] + ) $ / gm;
35643564 for ( let match = pattern . exec ( text ) ; match ; match = pattern . exec ( text ) ) {
35653565 const line = offsetToPosition ( lineStarts , match . index ) . line ;
35663566 const codes = match [ 1 ]
You can’t perform that action at this time.
0 commit comments