Skip to content

Commit

Permalink
Fix flint update script
Browse files Browse the repository at this point in the history
  • Loading branch information
Pante committed Feb 16, 2024
1 parent c51565c commit 38c66eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flint/tool/update.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ Future<Set<String>> fetch() async {
print('Fetching lint rules from $remote.');

final response = parse((await get(remote)).body);
return response.getElementsByClassName('code-excerpt__code').single.innerHtml
return response.getElementsByClassName('code-block-body').single.innerHtml
.split(RegExp('[ ]+-[ ]+'))
.skip(1)
.where((element) => !element.startsWith('<'))
.map((e) => e.trim())
.toSet();
}
Expand Down

0 comments on commit 38c66eb

Please sign in to comment.