Handle flow comments with leading spaces (#9168)
* check for spaces and tabs before a flow comment * fix issue with using string index and shift interchangably * update tests * Use update charcodes version * Disallow flow-comments in flow-comments and check for unterminated comments
This commit is contained in:
committed by
Daniel Tschinder
parent
b9340bc597
commit
72471aff63
@@ -98,7 +98,7 @@ function update_whitelist(summary) {
|
||||
);
|
||||
});
|
||||
|
||||
const newLines = disallowed
|
||||
const newLines = summary.disallowed.failure
|
||||
.map(({ test }) => test.file)
|
||||
.filter(test => oldLines.indexOf(test) === -1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user