Skip to content

Commit

Permalink
fix comment parser. (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
Livinglist authored Oct 24, 2024
1 parent 3e39413 commit bedc3b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/repositories/hacker_news_web_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ class HackerNewsWebRepository with Loggable {
/// Get comment age.
final Element? cmtAgeElement =
element.querySelector(_commentAgeSelector);
final String? ageString = cmtAgeElement?.attributes['title'];
final String? ageString =
cmtAgeElement?.attributes['title']?.split(' ').firstOrNull;

final int? timestamp = ageString == null
? null
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hacki
description: A Hacker News reader.
version: 2.9.4+152
version: 2.9.5+153
publish_to: none

environment:
Expand Down

0 comments on commit bedc3b6

Please sign in to comment.