mirror of
https://github.com/Livinglist/Hacki.git
synced 2025-08-26 11:17:22 +08:00

* added share extension. * added action extension. * added f-droid badge. * bumped version. * fixed android share extension. * updated README.md * updated README.md * updated README.md
8 lines
195 B
Dart
8 lines
195 B
Dart
extension StringExtension on String {
|
|
int? getItemId() {
|
|
final RegExp regex = RegExp(r'\d+$');
|
|
final String match = regex.stringMatch(this) ?? '';
|
|
return int.tryParse(match);
|
|
}
|
|
}
|