Fix assert in dartdoc_checker and enable asserts (#64111)

This commit is contained in:
Michael Goderbauer
2020-08-18 19:11:05 -07:00
committed by GitHub
parent 1b47759528
commit 3e867f78db
2 changed files with 4 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ void checkForUnresolvedDirectives(String htmlOutputPath) {
}
int _scanFile(File file) {
assert(path.extension(file.path) == 'html');
assert(path.extension(file.path) == '.html');
final Iterable<String> matches = _pattern.allMatches(file.readAsStringSync())
.map((RegExpMatch m ) => m.group(0));