Fix assert in dartdoc_checker and enable asserts (#64111)
This commit is contained in:
committed by
GitHub
parent
1b47759528
commit
3e867f78db
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user